Merge pull request #4324 from OpenDevTeam3/drag-undefineds
fixing this._times.length undefined in Map.Drag.js, fixes #4311
This commit is contained in:
commit
0ea9832771
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user