From: Tom Hughes Date: Mon, 18 Nov 2013 17:36:09 +0000 (+0000) Subject: Update to latest Leaflet-hash plugin X-Git-Tag: live~5192 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f3895c8fabbf16b34c69bc7a1a83b773ff61b3e6?ds=inline Update to latest Leaflet-hash plugin --- diff --git a/vendor/assets/leaflet/leaflet.hash.js b/vendor/assets/leaflet/leaflet.hash.js index 26bb8abf6..70a100777 100644 --- a/vendor/assets/leaflet/leaflet.hash.js +++ b/vendor/assets/leaflet/leaflet.hash.js @@ -65,7 +65,7 @@ } }, - remove: function() { + removeFrom: function(map) { if (this.changeTimeout) { clearTimeout(this.changeTimeout); } @@ -157,6 +157,6 @@ this._hash = L.hash(this); }; L.Map.prototype.removeHash = function() { - this._hash.remove(); + this._hash.removeFrom(); }; })(window);