mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Change clone() function to fix issue #687
As described in issue #687, clone() ignored the 'radial' property. Added the property to the constructor in the clone() function to get the expected behaviour.
This commit is contained in:
parent
27bb8a356f
commit
ade1a1fda3
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ var Gradient = Base.extend(/** @lends Gradient# */{
|
|||
var stops = [];
|
||||
for (var i = 0, l = this._stops.length; i < l; i++)
|
||||
stops[i] = this._stops[i].clone();
|
||||
return new Gradient(stops);
|
||||
return new Gradient(stops, this._radial);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue