mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Reuse attrs variable.
This commit is contained in:
parent
20011d912a
commit
efaae62799
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue