From 34de092742e19b84c74e775482cb08c234f2c75d Mon Sep 17 00:00:00 2001 From: Daniel Kern Date: Mon, 20 Sep 2021 13:26:55 -0500 Subject: [PATCH] new --- src/utils/adopter.js | 8 ++++---- 1 file 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) { -- 2.39.5