fixing this._times.length undefined in Map.Drag.js

Update Map.Drag.js

Update Map.Drag.js
This commit is contained in:
mouradeolive 2016-03-15 13:55:46 +01:00
parent 8aa32484b4
commit 5f7c2e07d6

View File

@ -38,6 +38,8 @@ L.Map.Drag = L.Handler.extend({
}
L.DomUtil.addClass(this._map._container, 'leaflet-grab');
this._draggable.enable();
this._positions = [];
this._times = [];
},
removeHooks: function () {