Remove comment about pending port that has been backported to Scriptographer.

This commit is contained in:
Jürg Lehni 2011-04-27 21:13:32 +01:00
parent 5200434a07
commit 3501e14c51

View file

@ -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;
},