update build again
This commit is contained in:
parent
547e9936f2
commit
28d047da74
16
dist/leaflet-src.js
vendored
16
dist/leaflet-src.js
vendored
@ -7156,19 +7156,21 @@ L.Handler.MarkerDrag = L.Handler.extend({
|
||||
addHooks: function () {
|
||||
var icon = this._marker._icon;
|
||||
if (!this._draggable) {
|
||||
this._draggable = new L.Draggable(icon, icon)
|
||||
.on('dragstart', this._onDragStart, this)
|
||||
.on('drag', this._onDrag, this)
|
||||
.on('dragend', this._onDragEnd, this);
|
||||
this._draggable = new L.Draggable(icon, icon);
|
||||
}
|
||||
|
||||
this._draggable
|
||||
.on('dragstart', this._onDragStart, this)
|
||||
.on('drag', this._onDrag, this)
|
||||
.on('dragend', this._onDragEnd, this);
|
||||
this._draggable.enable();
|
||||
},
|
||||
|
||||
removeHooks: function () {
|
||||
this._draggable
|
||||
.off('dragstart', this._onDragStart)
|
||||
.off('drag', this._onDrag)
|
||||
.off('dragend', this._onDragEnd);
|
||||
.off('dragstart', this._onDragStart)
|
||||
.off('drag', this._onDrag)
|
||||
.off('dragend', this._onDragEnd);
|
||||
|
||||
this._draggable.disable();
|
||||
},
|
||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user