]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/leaflet/leaflet.hash.js
Update to latest Leaflet-hash plugin
[rails.git] / vendor / assets / leaflet / leaflet.hash.js
index 26bb8abf688bb9b26cf63452dd529c93e5325de4..70a100777d4e78fe3f52dd759ce003d937bce345 100644 (file)
@@ -65,7 +65,7 @@
                        }
                },
 
-               remove: function() {
+               removeFrom: function(map) {
                        if (this.changeTimeout) {
                                clearTimeout(this.changeTimeout);
                        }
                this._hash = L.hash(this);
        };
        L.Map.prototype.removeHash = function() {
-               this._hash.remove();
+               this._hash.removeFrom();
        };
 })(window);