Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix insertBefore for IE10.
Browse files Browse the repository at this point in the history
In `insertBefore(node, undefined)`, `undefined` is not treated as
`null` causing a runtime error.
  • Loading branch information
arv committed Sep 11, 2013
1 parent 79b2ee8 commit be345ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShadowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
function insertBefore(parentNodeWrapper, newChildWrapper, refChildWrapper) {
var parentNode = unwrap(parentNodeWrapper);
var newChild = unwrap(newChildWrapper);
var refChild = refChildWrapper && unwrap(refChildWrapper);
var refChild = refChildWrapper ? unwrap(refChildWrapper) : null;

remove(newChildWrapper);
updateWrapperUpAndSideways(newChildWrapper);
Expand Down

0 comments on commit be345ce

Please sign in to comment.