mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Avoid double lookup of component key.
This commit is contained in:
parent
f3deed81cd
commit
81558cb54f
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ var Color = this.Color = Base.extend(new function() {
|
||||||
color[component] = value;
|
color[component] = value;
|
||||||
color = color.convert(this._colorType);
|
color = color.convert(this._colorType);
|
||||||
for (var i = 0, l = this._components.length; i < l; i++) {
|
for (var i = 0, l = this._components.length; i < l; i++) {
|
||||||
this[this._components[i]] = color[this._components[i]];
|
var component = this._components[i];
|
||||||
|
this[component] = color[component];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue