diff options
author | Daniel <dkern4159@yahoo.com> | 2021-09-22 17:41:46 -0500 |
---|---|---|
committer | Daniel <dkern4159@yahoo.com> | 2021-09-22 17:41:46 -0500 |
commit | 8e7c12b42cd91f21ff18fb3786f2782003743ed3 (patch) | |
tree | f5a87b7ffcea17ef3d1dffd9f5425e881f8f885a /src/utils/adopter.js | |
parent | ec51990e73c79bdfe2b7b7b8d739ec8163844ceb (diff) | |
download | svg.js-8e7c12b42cd91f21ff18fb3786f2782003743ed3.tar.gz svg.js-8e7c12b42cd91f21ff18fb3786f2782003743ed3.zip |
reverted package lock and edit nodeOrNew
Diffstat (limited to 'src/utils/adopter.js')
-rw-r--r-- | src/utils/adopter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index 300c133..487115c 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -42,7 +42,7 @@ export function makeInstance (element, isHTML = false) { } export function nodeOrNew (name, node) { - return (node && 'ownerDocument' in node && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) + return (node && node.ownerDocument && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name) } // Adopt existing svg elements |