returns this on error function

This commit is contained in:
Francisco Dans 2015-04-15 11:26:51 +02:00
parent d95399502c
commit 64d05276ae
2 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,7 @@ GMapsTorqueLayer.prototype = torque.extend({},
error: function (callback) {
this.options.errorCallback = callback;
return this;
}
});

View File

@ -176,6 +176,7 @@ L.CanvasLayer = L.Class.extend({
error: function (callback) {
this.provider.options.errorCallback = callback;
return this;
},
setOpacity: function (opacity) {