Skip to content

Commit adb0004

Browse files
committed
use 'j' in value loop
... to avoid confusing with i in dimension loop in outer-scope.
1 parent 390f292 commit adb0004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/splom/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ function calc(gd, trace) {
4747
vcalendar: trace.calendar
4848
}, 'v');
4949

50-
for(var i = 0; i < ccol.length; i++) {
51-
ccol[i] = ccol[i] === BADNUM ? NaN : ccol[i];
50+
for(var j = 0; j < ccol.length; j++) {
51+
ccol[j] = ccol[j] === BADNUM ? NaN : ccol[j];
5252
}
5353
cdata.push(ccol);
5454
ldata.push(ax.type === 'log' ? Lib.simpleMap(ccol, ax.c2l) : ccol);

0 commit comments

Comments
 (0)