Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
木瓜丸 committed Dec 20, 2020
1 parent 8a43f96 commit 2a7e147
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 2a7e147

Please sign in to comment.