Skip to content

Commit

Permalink
specific case for traversing children in hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed May 18, 2017
1 parent 248781d commit d9d880d
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 @@ -774,7 +774,7 @@
var vchild = length !== 0 ? children[0] : null;

while (vchild !== null || currentChildNode !== null) {
var next = currentChildNode ? currentChildNode.nextSibling : null;
var next = currentChildNode !== null ? currentChildNode.nextSibling : null;
hydrate(currentChildNode, vchild, node, instance);
vchild = ++i < length ? children[i] : null;
currentChildNode = next;
Expand Down
Loading

0 comments on commit d9d880d

Please sign in to comment.