Skip to content

Commit 9909382

Browse files
committed
lint
1 parent 53a5971 commit 9909382

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/plot_api/plot_api.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,8 @@ Plotly.newPlot = function(gd, data, layout, config) {
854854
function doCalcdata(gd) {
855855
var axList = Plotly.Axes.list(gd),
856856
fullData = gd._fullData,
857-
fullLayout = gd._fullLayout;
858-
859-
var i, trace, module, cd;
857+
fullLayout = gd._fullLayout,
858+
i;
860859

861860
var calcdata = gd.calcdata = new Array(fullData.length);
862861

@@ -882,12 +881,12 @@ function doCalcdata(gd) {
882881
}
883882

884883
for(i = 0; i < fullData.length; i++) {
885-
trace = fullData[i];
886-
module = trace._module;
887-
cd = [];
884+
var trace = fullData[i],
885+
_module = trace._module,
886+
cd = [];
888887

889-
if(module && trace.visible === true) {
890-
if(module.calc) cd = module.calc(gd, trace);
888+
if(_module && trace.visible === true) {
889+
if(_module.calc) cd = _module.calc(gd, trace);
891890
}
892891

893892
// make sure there is a first point
@@ -901,7 +900,7 @@ function doCalcdata(gd) {
901900
if(!cd[0].t) cd[0].t = {};
902901
cd[0].trace = trace;
903902

904-
Lib.markTime('done with calcdata for '+i);
903+
Lib.markTime('done with calcdata for ' + i);
905904
calcdata[i] = cd;
906905
}
907906
}
@@ -1564,7 +1563,7 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
15641563

15651564
if(Object.keys(aobj).length) gd.changed = true;
15661565

1567-
if(isNumeric(traces)) traces=[traces];
1566+
if(isNumeric(traces)) traces = [traces];
15681567
else if(!Array.isArray(traces) || !traces.length) {
15691568
traces=gd._fullData.map(function(v,i) { return i; });
15701569
}

0 commit comments

Comments
 (0)