From a91e29f4d035fb541a2f9a21fcc1cca1fe9d381f Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 22 Sep 2021 17:44:50 -0500 Subject: [PATCH] Revert "remove old code" This reverts commit aeea23be44bb6dc1653837c61c82a404d4701c8b. --- src/utils/adopter.js | 3 +++ 1 file changed, 3 insertions(+) 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) } -- 2.39.5