No need to perform cyclic looping here now, since #getNext/Previous() does that for us.

This commit is contained in:
Jürg Lehni 2011-04-27 12:24:04 +01:00
parent a251a24347
commit 138ec7d93c

View file

@ -153,15 +153,8 @@ var Segment = this.Segment = Base.extend({
handleOutSelected = !!(state & SelectionState.HANDLE_OUT);
previous = this.getPrevious(),
next = this.getNext(),
closed = this._path.closed,
segments = this._path._segments,
length = segments.length;
if (length > 1 && closed) {
if (previous == null)
previous = segments[length - 1];
if (next == null)
next = segments[0];
}
if (point == this._point) {
if (pointSelected != selected) {
if (selected) {