Skip to content

Commit

Permalink
Check for undefined in hasKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjio committed Mar 26, 2018
1 parent ecd720a commit 0f0efff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsbits/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function diffCss(cCss, nCss, node) {
}

function hasKeys(ns, cs) {
return ns.length > 0 && cs.length > 0 && ns[0].key !== null && cs[0].key !== null;
return ns.length > 0 && cs.length > 0 && ns[0].key != null && cs[0].key != null;
}

function diffChildren(cs, ns, parent, doc) {
Expand Down

0 comments on commit 0f0efff

Please sign in to comment.