aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-18 13:07:00 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-18 13:13:54 +0100
commitc482c602500494c8f30357284fd873046296ab65 (patch)
treeab63ed28993257cef93c03a6957722650f3609b5 /src/svg.js
parentb9bf23473e782ef16ae0d51dc840051451a3fc03 (diff)
downloadsvg.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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg.js b/src/svg.js
index b94b08a..b613052 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -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')