Small change to Color.

This commit is contained in:
Jonathan Puckey 2011-03-12 15:16:17 +01:00
parent d7399926a0
commit 5079259a8e

View file

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