Skip to content

Commit bc433a2

Browse files
committed
fix order of checks...
1 parent 24492a9 commit bc433a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/svg/axis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ d3.svg.axis = function() {
2828
} : Object;
2929

3030
// Ticks, or domain values for ordinal scales.
31-
var ticks = tickArguments_[0] instanceof Array && tickArguments_.length == 1 ? tickArguments_[0] : (scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain()),
31+
var ticks = tickArguments_.length == 1 && tickArguments_[0] instanceof Array ? tickArguments_[0] : (scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain()),
3232
tickFormat = tickFormat_ == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments_) : String) : tickFormat_;
3333

3434
// Minor ticks.

0 commit comments

Comments
 (0)