Do not bind context when unneeded

This commit is contained in:
Daniel García Aubert 2018-03-06 20:05:55 +01:00
parent 94d1667d70
commit a66c19c6c7

View File

@ -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 () {