Skip to content

Commit

Permalink
set children when clearing in optimization by reference to retain for…
Browse files Browse the repository at this point in the history
… next diff
  • Loading branch information
kbrsh committed May 20, 2017
1 parent 4a227fb commit d695684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@
while ((firstChild = _node.firstChild) !== null) {
removeChild(firstChild, _node);
}
oldChildren = [];
oldVNode.children = [];
}
} else {
// Traverse and Diff Children
Expand Down
Loading

0 comments on commit d695684

Please sign in to comment.