Permalink
Browse files

Merge pull request #700 from shramov/polyline-edit-fix

polyline: Remove deleted marker from internal list
  • Loading branch information...
2 parents 3c8495b + 95ae759 commit 02c3e9b9f3d991af8b18b996f25adcaeb2bc0ad7 @mourner mourner committed May 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/layer/vector/Polyline.Edit.js
@@ -124,6 +124,7 @@ L.Handler.PolyEdit = L.Handler.extend({
if (marker._middleRight) {
this._markerGroup.removeLayer(marker._middleRight);
}
+ this._markers.splice(i, 1);
this._poly.spliceLatLngs(i, 1);
this._updateIndexes(i, -1);
this._poly.fire('edit');

0 comments on commit 02c3e9b

Please sign in to comment.