Skip to content

Commit

Permalink
Merge pull request Leaflet#552 from mehmeta/polyedit
Browse files Browse the repository at this point in the history
Bugfix: Proper cleanup of marker editing handler when it is disabled.
  • Loading branch information
mourner committed Mar 3, 2012
2 parents 59f6672 + cf52a51 commit e9d9a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layer/vector/Polyline.Edit.js
Expand Up @@ -23,6 +23,8 @@ L.Handler.PolyEdit = L.Handler.extend({
removeHooks: function () {
if (this._poly._map) {
this._poly._map.removeLayer(this._markerGroup);
delete this._markerGroup;
delete this._markers;
}
},

Expand Down

0 comments on commit e9d9a02

Please sign in to comment.