aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/adopter.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/adopter.js')
-rw-r--r--src/utils/adopter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js
index 3e86d8a..34b853e 100644
--- a/src/utils/adopter.js
+++ b/src/utils/adopter.js
@@ -51,7 +51,7 @@ export function adopt (node) {
if (node.instance instanceof Base) return node.instance
// initialize variables
- var className = capitalize(node.nodeName)
+ var className = capitalize(node.nodeName || 'Dom')
// Make sure that gradients are adopted correctly
if (className === 'LinearGradient' || className === 'RadialGradient') {
3 14 15 16 17 18 19 20 21 22