summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel <dkern4159@yahoo.com>2021-09-22 17:44:50 -0500
committerDaniel <dkern4159@yahoo.com>2021-09-22 17:44:50 -0500
commita91e29f4d035fb541a2f9a21fcc1cca1fe9d381f (patch)
tree64d19e429fe0a087c19d3c3d798f9c2fcaca6ba5 /src
parent8e7c12b42cd91f21ff18fb3786f2782003743ed3 (diff)
downloadsvg.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.js3
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)
}