Update various comments about TODOs.

This commit is contained in:
Jürg Lehni 2011-04-26 17:04:15 +01:00
parent 84d321bd56
commit ac5dca4fc0
3 changed files with 6 additions and 5 deletions

View file

@ -106,11 +106,11 @@ var Color = this.Color = Base.extend(new function() {
Base.each(this._components,
function(name, i) {
var value = components[i];
// TODO: should we call the setter?
// TODO: Should we call the setter?
// this['set' + name.capitalize()]
this[name] = value !== undefined
? value
// TODO: is this correct?
// TODO: Is this correct?
// Shouldn't alpha be set to -1?
: name == 'alpha' ? 1 : null;
}, this);

View file

@ -87,6 +87,8 @@ var Document = this.Document = Base.extend({
var ctx = this.context;
ctx.save();
// TODO: Remove dirty rectangle test code once it's actually
// implemented.
var testDirtyRects = false;
if (testDirtyRects) {
var left = this.size.width / 8,

View file

@ -50,8 +50,7 @@ var Path = this.Path = PathItem.extend({
return curves;
},
// TODO: Add back to Scriptographer:
// TODO: Port back to Scriptographer:
getFirstSegment: function() {
return this._segments[0];
},
@ -204,7 +203,7 @@ var Path = this.Path = PathItem.extend({
return false;
},
// todo: getLocation(point, precision)
// TODO: getLocation(point, precision)
getLocation: function(length) {
var curves = this.getCurves(),
currentLength = 0;