Skip to content

Commit 002557b

Browse files
committed
lint
1 parent 2981ebb commit 002557b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/plot_api/plot_api.js

+11-7
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,16 @@ Plotly.plot = function(gd, data, layout, config) {
266266

267267
function getCdModule(cdSubplot, _module) {
268268
var cdModule = [];
269-
var i, cd, trace;
270-
for (i = 0; i < cdSubplot.length; i++) {
271-
cd = cdSubplot[i];
272-
trace = cd[0].trace;
273-
if (trace._module === _module && trace.visible === true) cdModule.push(cd);
269+
270+
for(var i = 0; i < cdSubplot.length; i++) {
271+
var cd = cdSubplot[i];
272+
var trace = cd[0].trace;
273+
274+
if((trace._module === _module) && (trace.visible === true)) {
275+
cdModule.push(cd);
276+
}
274277
}
278+
275279
return cdModule;
276280
}
277281

@@ -299,7 +303,7 @@ Plotly.plot = function(gd, data, layout, config) {
299303

300304
for (i = 0; i < subplots.length; i++) {
301305
subplot = subplots[i];
302-
subplotInfo = gd._fullLayout._plots[subplot];
306+
subplotInfo = fullLayout._plots[subplot];
303307
cdSubplot = getCdSubplot(calcdata, subplot);
304308
cdError = [];
305309

@@ -325,7 +329,7 @@ Plotly.plot = function(gd, data, layout, config) {
325329
}
326330

327331
// finally do all error bars at once
328-
if(gd._fullLayout._hasCartesian) {
332+
if(fullLayout._hasCartesian) {
329333
ErrorBars.plot(gd, subplotInfo, cdError);
330334
Lib.markTime('done ErrorBars');
331335
}

0 commit comments

Comments
 (0)