From ade1a1fda3e353498ba93d7d0ea3f6be21a61dad Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 6 May 2015 08:46:55 +0200 Subject: [PATCH] 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. --- src/style/Gradient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/Gradient.js b/src/style/Gradient.js index c739accc..b9d7454a 100644 --- a/src/style/Gradient.js +++ b/src/style/Gradient.js @@ -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); }, /**