mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Fix recently introduced error in Color, by setting internal properties directly.
This commit is contained in:
parent
777cc95dc3
commit
7e7944e6f4
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue