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 26bb8ab..70a1007 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);