Merge pull request #4324 from OpenDevTeam3/drag-undefineds

fixing this._times.length undefined in Map.Drag.js, fixes #4311
This commit is contained in:
Iván Sánchez Ortega 2016-03-15 16:26:46 +01:00
commit 0ea9832771

View File

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