Fix issue with cloning gradient colors.

This commit is contained in:
Jürg Lehni 2013-10-30 00:41:14 +01:00
parent eecf68b7c3
commit 4869376c41

View file

@ -642,7 +642,7 @@ var Color = Base.extend(new function() {
* @return {Color} a copy of the color object
*/
clone: function() {
return new Color(this._type, this._components.slice(), this._alpha);
return new Color(this);
},
/**