Skip to content

Commit ee0e2d7

Browse files
committed
Fix d3.transition(name).
1 parent e4ff113 commit ee0e2d7

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8597,7 +8597,7 @@
85978597
d3_transitionPrototype.node = d3_selectionPrototype.node;
85988598
d3_transitionPrototype.size = d3_selectionPrototype.size;
85998599
d3.transition = function(selection, name) {
8600-
return arguments.length ? d3_transitionInheritId ? selection.transition(name) : selection : d3_selectionRoot.transition(name);
8600+
return selection && selection.transition ? d3_transitionInheritId ? selection.transition(name) : selection : d3_selectionRoot.transition(selection);
86018601
};
86028602
d3.transition.prototype = d3_transitionPrototype;
86038603
d3_transitionPrototype.select = function(selector) {

0 commit comments

Comments
 (0)