From 4869376c41625095eae21d7ac3f1587254143ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 30 Oct 2013 00:41:14 +0100 Subject: [PATCH] Fix issue with cloning gradient colors. --- src/style/Color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/Color.js b/src/style/Color.js index c79f1124..df4923df 100644 --- a/src/style/Color.js +++ b/src/style/Color.js @@ -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); }, /**