From 3501e14c51cde88ec3160d87e83f62707e9a0bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Apr 2011 21:13:32 +0100 Subject: [PATCH] Remove comment about pending port that has been backported to Scriptographer. --- src/path/Segment.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/path/Segment.js b/src/path/Segment.js index c328ae78..326307d8 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -110,10 +110,9 @@ var Segment = this.Segment = Base.extend({ if (this._path != null) { var index = this.getIndex(); // The last segment of an open path belongs to the last curve - // TODO: Port back to Scriptographer if (!this._path.closed && index == this._path._segments.length - 1) index--; - return this._path.getCurves()[index]; + return this._path.getCurves()[index] || null; } return null; },