uses self instead of bind

This commit is contained in:
Francisco Dans 2015-04-15 11:54:23 +02:00
parent ee07260d7b
commit 27d983d646

View File

@ -460,7 +460,7 @@
map_instance_time.end();
if (data) {
if (data.errors){
this.options.errorCallback(data.errors);
self.options.errorCallback(data.errors);
return;
}
var torque_key = Object.keys(data.metadata.torque)[0]
@ -479,7 +479,7 @@
} else {
Profiler.metric('torque.provider.windshaft.layergroup.error').inc();
}
}.bind(this), { callbackName: self.options.instanciateCallback });
}, { callbackName: self.options.instanciateCallback });
}
};