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:
Jan 2015-05-06 08:46:55 +02:00 committed by Jürg Lehni
parent 27bb8a356f
commit ade1a1fda3

View file

@ -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);
},
/**