Do not bind context if not needed

This commit is contained in:
Daniel García Aubert 2017-11-03 09:47:46 +01:00
parent 677f6caab8
commit 65e8609fec

View File

@ -78,16 +78,16 @@ MapController.prototype.composeCreateMapMiddleware = function ({ useTemplate = f
useTemplate ? this.getTemplate.bind(this) : this.prepareAdapterMapConfig.bind(this), useTemplate ? this.getTemplate.bind(this) : this.prepareAdapterMapConfig.bind(this),
useTemplate ? this.instantiateLayergroup.bind(this) : this.createLayergroup.bind(this), useTemplate ? this.instantiateLayergroup.bind(this) : this.createLayergroup.bind(this),
this.incrementMapViewCount.bind(this), this.incrementMapViewCount.bind(this),
this.augmentLayergroupData.bind(this), this.augmentLayergroupData,
this.getAffectedTables.bind(this), this.getAffectedTables.bind(this),
this.setCacheChannel.bind(this), this.setCacheChannel,
this.setLastUpdatedTimeToLayergroup.bind(this), this.setLastUpdatedTimeToLayergroup,
this.setCacheControl.bind(this), this.setCacheControl,
this.setLayerStats.bind(this), this.setLayerStats.bind(this),
this.setLayergroupIdHeaderBuilder(useTemplateHash), this.setLayergroupIdHeaderBuilder(useTemplateHash),
this.setDataviewsAndWidgetsUrlsToLayergroupMetadata.bind(this), this.setDataviewsAndWidgetsUrlsToLayergroupMetadata.bind(this),
this.setAnalysesMetadataToLayergroupBuilder(includeQuery), this.setAnalysesMetadataToLayergroupBuilder(includeQuery),
this.setTurboCartoMetadataToLayergroup.bind(this), this.setTurboCartoMetadataToLayergroup,
this.setSurrogateKeyHeader.bind(this), this.setSurrogateKeyHeader.bind(this),
sendResponse, sendResponse,
augmentError({ label, addContext }) augmentError({ label, addContext })