Skip to content

Commit

Permalink
[fix] not all hooks are removed after stopping the editing
Browse files Browse the repository at this point in the history
  • Loading branch information
SNtGog committed Mar 31, 2016
1 parent b7ab172 commit 826587f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/edit/handler/EditToolbar.Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ L.EditToolbar.Edit = L.Handler.extend({
.on('touchmove', this._onMouseMove, this)
.on('MSPointerMove', this._onMouseMove, this)
.on('click', this._editStyle, this)
.on('draw:editvertex', this._updateTooltip, this);
.on('draw:editvertex', this._updateTooltip, this);
}
},

Expand All @@ -83,7 +83,9 @@ L.EditToolbar.Edit = L.Handler.extend({
this._map
.off('mousemove', this._onMouseMove, this)
.off('touchmove', this._onMouseMove, this)
.off('MSPointerMove', this._onMouseMove, this);
.off('MSPointerMove', this._onMouseMove, this)
.off('click', this._editStyle, this)
.off('draw:editvertex', this._updateTooltip, this);
}
},

Expand Down

0 comments on commit 826587f

Please sign in to comment.