Merge pull request #1760 from yohanboniface/markerdrag_off

remove EventListener with same context used for adding it
This commit is contained in:
Vladimir Agafonkin 2013-06-14 15:39:14 -07:00
commit 6d33627f66

View File

@ -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();
},