From 138ec7d93c91764d578d45e57a9f1f86546da658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Apr 2011 12:24:04 +0100 Subject: [PATCH] No need to perform cyclic looping here now, since #getNext/Previous() does that for us. --- src/path/Segment.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/path/Segment.js b/src/path/Segment.js index 449e61e7..8c525b07 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -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) {