From efaae627997d55c070f44421373d2679e9edab21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com> Date: Sun, 10 Feb 2013 19:40:44 -0800 Subject: [PATCH] Reuse attrs variable. --- src/svg/SvgExport.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/svg/SvgExport.js b/src/svg/SvgExport.js index 4b11a22a..b3a1568e 100644 --- a/src/svg/SvgExport.js +++ b/src/svg/SvgExport.js @@ -410,11 +410,11 @@ new function() { var stops = gradient._stops; for (var i = 0, l = stops.length; i < l; i++) { var stop = stops[i], - color = stop._color, - attrs = { - offset: stop._rampPoint, - 'stop-color': color.toCss(true) - }; + color = stop._color; + attrs = { + offset: stop._rampPoint, + 'stop-color': color.toCss(true) + }; // See applyStyle for an explanation of why there are separated // opacity / color attributes. if (color.getAlpha() < 1)