diff options
author | Daniel Kern <dkern4159@yahoo.com> | 2021-09-20 13:26:55 -0500 |
---|---|---|
committer | Daniel Kern <dkern4159@yahoo.com> | 2021-09-20 13:26:55 -0500 |
commit | 34de092742e19b84c74e775482cb08c234f2c75d (patch) | |
tree | 0405307715bbb9a04b4415444fb39c73c8d9f2bf /src/utils | |
parent | dc7e039ef2cbd3005c53652334f42d12f1f25691 (diff) | |
download | svg.js-34de092742e19b84c74e775482cb08c234f2c75d.tar.gz svg.js-34de092742e19b84c74e775482cb08c234f2c75d.zip |
new
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/adopter.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 824da57..88db17c 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -41,12 +41,12 @@ export function makeInstance (element, isHTML = false) { return element } -export function nodeOrNew (name, node) { - return node instanceof globals.window.Node ? node : create(name) -} // export function nodeOrNew (name, node) { -// return (node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) +// return node instanceof globals.window.Node ? node : create(name) // } +export function nodeOrNew (name, node) { + return (node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) +} // Adopt existing svg elements export function adopt (node) { |