Merge pull request #1760 from yohanboniface/markerdrag_off
remove EventListener with same context used for adding it
This commit is contained in:
commit
6d33627f66
@ -22,9 +22,9 @@ L.Handler.MarkerDrag = L.Handler.extend({
|
||||
|
||||
removeHooks: function () {
|
||||
this._draggable
|
||||
.off('dragstart', this._onDragStart)
|
||||
.off('drag', this._onDrag)
|
||||
.off('dragend', this._onDragEnd);
|
||||
.off('dragstart', this._onDragStart, this)
|
||||
.off('drag', this._onDrag, this)
|
||||
.off('dragend', this._onDragEnd, this);
|
||||
|
||||
this._draggable.disable();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user