Skip to content

Commit

Permalink
check child is meaningless (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrErHu authored and marvinhagemeister committed May 3, 2018
1 parent 433fade commit 569bf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vdom/diff.js
Expand Up @@ -204,7 +204,7 @@ function innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {
}
}
// attempt to pluck a node of the same type from the existing children
else if (!child && min<childrenLen) {
else if (min<childrenLen) {
for (j=min; j<childrenLen; j++) {
if (children[j]!==undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {
child = c;
Expand Down

0 comments on commit 569bf97

Please sign in to comment.