diff --git a/src/gradient.class.js b/src/gradient.class.js index d601fe02..1f7c8a8a 100644 --- a/src/gradient.class.js +++ b/src/gradient.class.js @@ -3,7 +3,7 @@ /* _FROM_SVG_START_ */ function getColorStop(el) { var style = el.getAttribute('style'), - offset = el.getAttribute('offset'), + offset = el.getAttribute('offset') || 0, color, colorAlpha, opacity; // convert percents to absolute values