Skip to content

Commit

Permalink
run the listener once and unregister
Browse files Browse the repository at this point in the history
  • Loading branch information
eduoda committed May 13, 2016
1 parent bf1719b commit 5eb8b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/edit/handler/Edit.Poly.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ L.Edit.PolyVerticesEdit = L.Handler.extend({
marker1._middleRight = marker2._middleLeft = marker;

onDragStart = function () {
marker.off('touchmove', onDragStart, this);
var i = marker2._index;

marker._index = i;
Expand Down

0 comments on commit 5eb8b0d

Please sign in to comment.