mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix issue with cloning gradient colors.
This commit is contained in:
parent
eecf68b7c3
commit
4869376c41
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ var Color = Base.extend(new function() {
|
||||||
* @return {Color} a copy of the color object
|
* @return {Color} a copy of the color object
|
||||||
*/
|
*/
|
||||||
clone: function() {
|
clone: function() {
|
||||||
return new Color(this._type, this._components.slice(), this._alpha);
|
return new Color(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue