Browse Source

Revert "remove old code"

This reverts commit aeea23be44.
tags/3.1.2
Daniel 2 years ago
parent
commit
a91e29f4d0
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/utils/adopter.js

+ 3
- 0
src/utils/adopter.js View File

@@ -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)
}

Loading…
Cancel
Save