mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Remove comment about pending port that has been backported to Scriptographer.
This commit is contained in:
parent
5200434a07
commit
3501e14c51
1 changed files with 1 additions and 2 deletions
|
@ -110,10 +110,9 @@ var Segment = this.Segment = Base.extend({
|
||||||
if (this._path != null) {
|
if (this._path != null) {
|
||||||
var index = this.getIndex();
|
var index = this.getIndex();
|
||||||
// The last segment of an open path belongs to the last curve
|
// 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)
|
if (!this._path.closed && index == this._path._segments.length - 1)
|
||||||
index--;
|
index--;
|
||||||
return this._path.getCurves()[index];
|
return this._path.getCurves()[index] || null;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue