From 64d05276ae31cbf1359da25a45f1cc123dd4b73f Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Wed, 15 Apr 2015 11:26:51 +0200 Subject: [PATCH] returns this on error function --- lib/torque/gmaps/torque.js | 1 + lib/torque/leaflet/canvas_layer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/torque/gmaps/torque.js b/lib/torque/gmaps/torque.js index 000b01b..d2fd34f 100644 --- a/lib/torque/gmaps/torque.js +++ b/lib/torque/gmaps/torque.js @@ -338,6 +338,7 @@ GMapsTorqueLayer.prototype = torque.extend({}, error: function (callback) { this.options.errorCallback = callback; + return this; } }); diff --git a/lib/torque/leaflet/canvas_layer.js b/lib/torque/leaflet/canvas_layer.js index 8e21dbc..642ef77 100644 --- a/lib/torque/leaflet/canvas_layer.js +++ b/lib/torque/leaflet/canvas_layer.js @@ -176,6 +176,7 @@ L.CanvasLayer = L.Class.extend({ error: function (callback) { this.provider.options.errorCallback = callback; + return this; }, setOpacity: function (opacity) {