Skip to content

Commit

Permalink
fix(mount): use deep node clone
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Dec 11, 2016
1 parent 27660ce commit 82c9b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mount.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function mount (selector, tree) {
const children = oldTree.childNodes
for (var i = 0; i < children.length; i++) {
if (children[i].nodeName === 'SCRIPT') {
tree.appendChild(children[i].cloneNode())
tree.appendChild(children[i].cloneNode(true))
}
}
}
Expand Down

0 comments on commit 82c9b07

Please sign in to comment.