]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/leaflet/leaflet.js
Update to Leaflet 0.7.5
[rails.git] / vendor / assets / leaflet / leaflet.js
index aecf2677ba664db88dab18925a9771c7aedffaf0..bc92d749f58eecc3079f2348290edc7224cd302c 100644 (file)
@@ -7,7 +7,7 @@
 var oldL = window.L,
     L = {};
 
-L.version = '0.7.4';
+L.version = '0.7.5';
 
 // define Leaflet for Node module pattern loaders, including Browserify
 if (typeof module === 'object' && typeof module.exports === 'object') {
@@ -3537,12 +3537,8 @@ L.Marker = L.Class.extend({
 
        update: function () {
                if (this._icon) {
-                       var pos = this._map.latLngToLayerPoint(this._latlng).round();
-                       L.Util.requestAnimFrame(function () {
-                               this._setPos(pos);
-                       }, this);
+                       this._setPos(this._map.latLngToLayerPoint(this._latlng).round());
                }
-
                return this;
        },
 
@@ -3565,7 +3561,7 @@ L.Marker = L.Class.extend({
                        if (options.title) {
                                icon.title = options.title;
                        }
-                       
+
                        if (options.alt) {
                                icon.alt = options.alt;
                        }