Skip to content

Commit

Permalink
Fix a bug in env-js re. insertBefore.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Apr 9, 2011
1 parent 57f2ecf commit 05f58d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/env-js/envjs/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ __insertBefore__ = function(nodelist, newChild, refChildIndex) {
else {
// append the newChild
Array.prototype.splice.apply(nodelist,[refChildIndex, 0, newChild]);
__addToIndexes__(newChild, nodelist.parentNode);
}
}
};
Expand Down

0 comments on commit 05f58d3

Please sign in to comment.