Skip to content

Commit

Permalink
Add deleted event for when a layer is deleted via the delete function…
Browse files Browse the repository at this point in the history
… of the edit toolbar. refs Leaflet#328
  • Loading branch information
jacobtoye committed Oct 3, 2014
1 parent 9d4d618 commit 98c14c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edit/handler/EditToolbar.Delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ L.EditToolbar.Delete = L.Handler.extend({
this._deletableLayers.removeLayer(layer);

this._deletedLayers.addLayer(layer);

layer.fire('deleted');
},

_onMouseMove: function (e) {
Expand Down

0 comments on commit 98c14c0

Please sign in to comment.