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.instantiateLayergroup.bind(this) : this.createLayergroup.bind(this),
this.incrementMapViewCount.bind(this),
this.augmentLayergroupData.bind(this),
this.augmentLayergroupData,
this.getAffectedTables.bind(this),
this.setCacheChannel.bind(this),
this.setLastUpdatedTimeToLayergroup.bind(this),
this.setCacheControl.bind(this),
this.setCacheChannel,
this.setLastUpdatedTimeToLayergroup,
this.setCacheControl,
this.setLayerStats.bind(this),
this.setLayergroupIdHeaderBuilder(useTemplateHash),
this.setDataviewsAndWidgetsUrlsToLayergroupMetadata.bind(this),
this.setAnalysesMetadataToLayergroupBuilder(includeQuery),
this.setTurboCartoMetadataToLayergroup.bind(this),
this.setTurboCartoMetadataToLayergroup,
this.setSurrogateKeyHeader.bind(this),
sendResponse,
augmentError({ label, addContext })