aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Dom.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Dom.js')
-rw-r--r--src/elements/Dom.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index eb59418..7c36078 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -72,7 +72,7 @@ export default class Dom extends EventTarget {
this.writeDataToDom()
// clone element and assign new id
- return assignNewId(this.node.cloneNode(deep))
+ return new this.constructor(assignNewId(this.node.cloneNode(deep)))
}
// Iterates over all children and invokes a given block