Add some TODOs to check.

This commit is contained in:
Jürg Lehni 2011-04-27 12:21:47 +01:00
parent 0e89466a11
commit a251a24347

View file

@ -129,13 +129,15 @@ var Curve = this.Curve = Base.extend({
},
getNext: function() {
// TODO: No need to call getCurves() here?
var curves = this._path && this._path._curves;
// TODO: Add cyclic looping when closed back to Scriptographer
// TODO: Port cyclic looping when closed back to Scriptographer
return curves && (curves[this._index1 + 1]
|| this._path.closed && curves[0]) || null;
},
getPrevious: function() {
// TODO: No need to call getCurves() here?
var curves = this._path && this._path._curves;
return curves && (curves[this._index1 - 1]
|| this._path.closed && curves[curves.length - 1]) || null;