From 026cd531dd7266bc39f97ddda60ef0787d60ba7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Wed, 18 Jul 2018 13:57:47 -0400 Subject: [PATCH] lint / fix comment --- src/plots/cartesian/autorange.js | 1 - src/traces/scatter/calc.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plots/cartesian/autorange.js b/src/plots/cartesian/autorange.js index a009e1da986..63017327ee0 100644 --- a/src/plots/cartesian/autorange.js +++ b/src/plots/cartesian/autorange.js @@ -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 = {}; diff --git a/src/traces/scatter/calc.js b/src/traces/scatter/calc.js index 2ba49a0ab46..97c3f187bdb 100644 --- a/src/traces/scatter/calc.js +++ b/src/traces/scatter/calc.js @@ -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); }