aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers.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/helpers.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/helpers.js')
-rw-r--r--src/helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.js b/src/helpers.js
index e3ad6f0..90c4995 100644
--- a/src/helpers.js
+++ b/src/helpers.js
@@ -136,7 +136,7 @@ function arrayToString(a) {
function assignNewId(node) {
// do the same for SVG child nodes as well
for (var i = node.childNodes.length - 1; i >= 0; i--)
- if (node.childNodes[i] instanceof SVGElement)
+ if (node.childNodes[i] instanceof window.SVGElement)
assignNewId(node.childNodes[i])
return SVG.adopt(node).id(SVG.eid(node.nodeName))