Fix recently introduced error in Color, by setting internal properties directly.

This commit is contained in:
Jürg Lehni 2011-05-21 00:40:20 +01:00
parent 777cc95dc3
commit 7e7944e6f4

View file

@ -187,9 +187,9 @@ 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?
// this['set' + name.capitalize()]
this[name] = value !== undefined ? value : null;
// Set internal propery directly
this['_' + name] = value !== undefined
? value : null;
},
this);
}