From a66c19c6c7e3f7e80b6946ee52bfcb2c90cde415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 6 Mar 2018 20:05:55 +0100 Subject: [PATCH] Do not bind context when unneeded --- lib/cartodb/controllers/layergroup.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index cecd03fd..8cf3f064 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -265,7 +265,7 @@ LayergroupController.prototype.analysisNodeStatus = function (analysisStatusBack next(); }); - }.bind(this); + }; }; function getRequestParams(locals) { @@ -319,7 +319,7 @@ LayergroupController.prototype.getDataview = function (dataviewBackend) { next(); }); - }.bind(this); + }; }; LayergroupController.prototype.dataviewSearch = function (dataviewBackend) { @@ -338,7 +338,7 @@ LayergroupController.prototype.dataviewSearch = function (dataviewBackend) { next(); }); - }.bind(this); + }; }; LayergroupController.prototype.attributes = function (attributesBackend) { @@ -359,7 +359,7 @@ LayergroupController.prototype.attributes = function (attributesBackend) { next(); }); - }.bind(this); + }; }; function getStatusCode(tile, format){ @@ -419,7 +419,7 @@ LayergroupController.prototype.tile = function (tileBackend) { global.statsClient.increment('windshaft.tiles.success'); global.statsClient.increment('windshaft.tiles.' + formatStat + '.success'); }); - }.bind(this); + }; }; LayergroupController.prototype.layer = function (tileBackend) { @@ -455,7 +455,7 @@ LayergroupController.prototype.layer = function (tileBackend) { global.statsClient.increment('windshaft.tiles.success'); global.statsClient.increment('windshaft.tiles.' + formatStat + '.success'); }); - }.bind(this); + }; }; LayergroupController.prototype.tileError = function () { @@ -509,7 +509,7 @@ LayergroupController.prototype.center = function (previewBackend) { next(); }); - }.bind(this); + }; }; LayergroupController.prototype.bbox = function (previewBackend) { @@ -544,7 +544,7 @@ LayergroupController.prototype.bbox = function (previewBackend) { next(); }); - }.bind(this); + }; }; LayergroupController.prototype.setLastModifiedHeader = function () {