]> git.openstreetmap.org Git - rails.git/commitdiff
Update to latest Leaflet-hash plugin
authorTom Hughes <tom@compton.nu>
Mon, 18 Nov 2013 17:36:09 +0000 (17:36 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 18 Nov 2013 17:43:46 +0000 (17:43 +0000)
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);