Skip to content

Commit

Permalink
Fixes orient comparison to be always strict equal.
Browse files Browse the repository at this point in the history
  • Loading branch information
llorenspujol authored and mbostock committed Oct 29, 2020
1 parent a9b688e commit 829873d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function axis(orient, scale) {
tickExit.remove();

path
.attr("d", orient === left || orient == right
.attr("d", orient === left || orient === right
? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1)
: (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1));

Expand Down

0 comments on commit 829873d

Please sign in to comment.