Skip to content

Commit 7af610b

Browse files
committed
Merge remote-tracking branch 'origin/fix-ie9-insert-before' into 3.3.7
2 parents ddff871 + 0136ff9 commit 7af610b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ d3 = function() {
725725
name = d3_selection_creator(name);
726726
before = d3_selection_selector(before);
727727
return this.select(function() {
728-
return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments));
728+
return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments) || null);
729729
});
730730
};
731731
d3_selectionPrototype.remove = function() {

0 commit comments

Comments
 (0)