diff --git a/main.js b/main.js index fec7a61..048089d 100644 --- a/main.js +++ b/main.js @@ -268,12 +268,17 @@ class ValueArray { let tmp = new_temp[new_temp.length - 1]; tmp.update(value_arr.values[j].args); if(tmp.fragment instanceof Node){ - const walker = document.createTreeWalker(tmp.fragment); - while(walker.nextNode()) { - if(walker.currentNode instanceof Component) { - walker.currentNode.dispatch('updatecontext'); + (d => { + const walker = document.createTreeWalker(d); + while(walker.nextNode()) { + if(walker.currentNode instanceof Component) { + walker.currentNode.dispatch('updatecontext'); + } + if(walker.currentNode.childNodes.length > 0) { + arguments.callee(walker.currentNode); + } } - } + })(tmp.fragment); } } i++;