diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-18 13:07:00 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-18 13:13:54 +0100 |
commit | c482c602500494c8f30357284fd873046296ab65 (patch) | |
tree | ab63ed28993257cef93c03a6957722650f3609b5 /src/svg.js | |
parent | b9bf23473e782ef16ae0d51dc840051451a3fc03 (diff) | |
download | svg.js-c482c602500494c8f30357284fd873046296ab65.tar.gz svg.js-c482c602500494c8f30357284fd873046296ab65.zip |
prefix globals with window so window can be injected properly
Diffstat (limited to 'src/svg.js')
-rw-r--r-- | src/svg.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -101,7 +101,7 @@ SVG.adopt = function(node) { // adopt with element-specific settings if (node.nodeName == 'svg') - element = node.parentNode instanceof SVGElement ? new SVG.Nested : new SVG.Doc + element = node.parentNode instanceof window.SVGElement ? new SVG.Nested : new SVG.Doc else if (node.nodeName == 'linearGradient') element = new SVG.Gradient('linear') else if (node.nodeName == 'radialGradient') |