Skip to content

Commit

Permalink
Merge pull request #192 from cazacugmihai/master
Browse files Browse the repository at this point in the history
fix for: 2 identical events issued for one action
  • Loading branch information
jacobtoye committed Sep 30, 2013
2 parents de0dae3 + d2aac61 commit 7546b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/leaflet.draw-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,6 @@ L.Edit.SimpleShape = L.Handler.extend({
var marker = e.target;
marker.setOpacity(1);

this._shape.fire('edit');
this._fireEdit();
},

Expand Down Expand Up @@ -2678,4 +2677,4 @@ L.EditToolbar.Delete = L.Handler.extend({
});


}(this, document));
}(this, document));
3 changes: 1 addition & 2 deletions src/edit/handler/Edit.SimpleShape.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ L.Edit.SimpleShape = L.Handler.extend({
var marker = e.target;
marker.setOpacity(1);

this._shape.fire('edit');
this._fireEdit();
},

Expand All @@ -135,4 +134,4 @@ L.Edit.SimpleShape = L.Handler.extend({
_resize: function () {
// Children override
}
});
});

0 comments on commit 7546b7f

Please sign in to comment.