From 27d983d646781ccc63f9cada562f25db751b9f28 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Wed, 15 Apr 2015 11:54:23 +0200 Subject: [PATCH] uses self instead of bind --- lib/torque/provider/windshaft.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/torque/provider/windshaft.js b/lib/torque/provider/windshaft.js index 356763b..7093cf4 100644 --- a/lib/torque/provider/windshaft.js +++ b/lib/torque/provider/windshaft.js @@ -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 }); } };