Reuse attrs variable.

This commit is contained in:
Jürg Lehni 2013-02-10 19:40:44 -08:00
parent 20011d912a
commit efaae62799

View file

@ -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)