Skip to content

Commit

Permalink
lint / fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jul 18, 2018
1 parent 1c40947 commit 026cd53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/plots/cartesian/autorange.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ function doAutoRange(ax) {
* and make it a tight bound if possible
*/
function expand(ax, data, options) {

if(!ax._min) ax._min = [];
if(!ax._max) ax._max = [];
if(!options) options = {};
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scatter/calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function calcAxisExpansion(gd, trace, xa, ya, x, y, ppad) {
yOptions.padded = false;
}

// N.B. asymmetric splom traces call this with undefined xa or ya
// N.B. asymmetric splom traces call this with blank {} xa or ya
if(xa._id) Axes.expand(xa, x, xOptions);
if(ya._id) Axes.expand(ya, y, yOptions);
}
Expand Down

0 comments on commit 026cd53

Please sign in to comment.