Skip to content

Commit b66b620

Browse files
committed
lint
1 parent 460ee0c commit b66b620

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/errorbars/calc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var isNumeric = require('fast-isnumeric');
1414
var Plots = require('../../plots/plots');
1515
var Axes = require('../../plots/cartesian/axes');
1616

17-
var compureError = require('./compute_error');
17+
var computeError = require('./compute_error');
1818

1919

2020
module.exports = function calc(gd) {
@@ -30,8 +30,8 @@ module.exports = function calc(gd) {
3030
yObj = trace.error_y || {},
3131
xa = Axes.getFromId(gd, trace.xaxis),
3232
ya = Axes.getFromId(gd, trace.yaxis),
33-
xVis = xObj.visible && ['linear', 'log'].indexOf(xa.type)!==-1,
34-
yVis = yObj.visible && ['linear', 'log'].indexOf(ya.type)!==-1;
33+
xVis = (xObj.visible && ['linear', 'log'].indexOf(xa.type) !== -1),
34+
yVis = (yObj.visible && ['linear', 'log'].indexOf(ya.type) !== -1);
3535

3636
if(!xVis && !yVis) continue;
3737

@@ -45,14 +45,14 @@ module.exports = function calc(gd) {
4545

4646
if(!isNumeric(ya.c2l(calcY)) || !isNumeric(xa.c2l(calcX))) continue;
4747

48-
var errorY = compureError(calcY, j, yObj);
48+
var errorY = computeError(calcY, j, yObj);
4949
if(isNumeric(errorY[0]) && isNumeric(errorY[1])) {
5050
calcPt.ys = calcY - errorY[0];
5151
calcPt.yh = calcY + errorY[1];
5252
yVals.push(calcPt.ys, calcPt.yh);
5353
}
5454

55-
var errorX = compureError(calcX, j, xObj);
55+
var errorX = computeError(calcX, j, xObj);
5656
if(isNumeric(errorX[0]) && isNumeric(errorX[1])) {
5757
calcPt.xs = calcX - errorX[0];
5858
calcPt.xh = calcX + errorX[1];

0 commit comments

Comments
 (0)