aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
}