diff options
author | Daniel <dkern4159@yahoo.com> | 2021-09-22 17:44:50 -0500 |
---|---|---|
committer | Daniel <dkern4159@yahoo.com> | 2021-09-22 17:44:50 -0500 |
commit | a91e29f4d035fb541a2f9a21fcc1cca1fe9d381f (patch) | |
tree | 64d19e429fe0a087c19d3c3d798f9c2fcaca6ba5 /src | |
parent | 8e7c12b42cd91f21ff18fb3786f2782003743ed3 (diff) | |
download | svg.js-a91e29f4d035fb541a2f9a21fcc1cca1fe9d381f.tar.gz svg.js-a91e29f4d035fb541a2f9a21fcc1cca1fe9d381f.zip |
Revert "remove old code"
This reverts commit aeea23be44bb6dc1653837c61c82a404d4701c8b.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/adopter.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 487115c..b5e326c 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -41,6 +41,9 @@ 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.ownerDocument && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) } |