Clear the indices and path references of the removed segments.

This commit is contained in:
Jürg Lehni 2011-05-16 01:37:31 +01:00
parent 074e121f47
commit a601cfdd6d

View file

@ -255,6 +255,8 @@ var Path = this.Path = PathItem.extend({
this._selectedSegmentCount--;
segment._selectionState = 0;
}
// Clear the indices and path references of the removed segments
removed._index = removed._path = undefined;
}
// Adjust the indices of the segments above.
for (var i = from, l = segments.length; i < l; i++)