diff --git a/src/color/Color.js b/src/color/Color.js index 59e1eaa4..e5c1dca2 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -263,7 +263,8 @@ var Color = this.Color = Base.extend(new function() { color[component] = value; color = color.convert(this._colorType); 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]; } }; });