aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/adopter.js8
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) {