Skip to content

Commit

Permalink
ensure insertBefore is passed null not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Esch committed Aug 24, 2014
1 parent 3a85c22 commit d9172d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch-op.js
Expand Up @@ -140,7 +140,7 @@ function reorderChildren(domNode, bIndex) {
}

node = children[move]
insertNode = childNodes[i + insertOffset]
insertNode = childNodes[i + insertOffset] || null
if (node !== insertNode) {
domNode.insertBefore(node, insertNode)
}
Expand Down

0 comments on commit d9172d8

Please sign in to comment.