Skip to content

Commit ec4d8b9

Browse files
committed
some linting
1 parent 057c811 commit ec4d8b9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Diff for: src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,7 @@ function diffData(gd, oldFullData, newFullData, immutable, transition, newDataRe
28852885
}
28862886

28872887
if(transition && flags.nChanges && flags.nChangesAnim) {
2888-
flags.anim = flags.nChanges === flags.nChangesAnim && sameTraceLength ? 'all' : 'some';
2888+
flags.anim = (flags.nChanges === flags.nChangesAnim) && sameTraceLength ? 'all' : 'some';
28892889
}
28902890

28912891
return flags;

Diff for: src/plots/plots.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -2510,28 +2510,27 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
25102510
var fullData = gd._fullData;
25112511
var fullLayout = gd._fullLayout;
25122512
var basePlotModules = fullLayout._basePlotModules;
2513-
var i;
25142513

25152514
var axisTransitionOpts;
25162515
var traceTransitionOpts;
25172516
var transitionedTraces;
25182517

25192518
var allTraceIndices = [];
2520-
for(i = 0; i < fullData.length; i++) {
2519+
for(var i = 0; i < fullData.length; i++) {
25212520
allTraceIndices.push(i);
25222521
}
25232522

25242523
function transitionAxes() {
2525-
for(var i = 0; i < basePlotModules.length; i++) {
2526-
if(basePlotModules[i].transitionAxes) {
2527-
basePlotModules[i].transitionAxes(gd, axEdits, axisTransitionOpts, makeCallback);
2524+
for(var j = 0; j < basePlotModules.length; j++) {
2525+
if(basePlotModules[j].transitionAxes) {
2526+
basePlotModules[j].transitionAxes(gd, axEdits, axisTransitionOpts, makeCallback);
25282527
}
25292528
}
25302529
}
25312530

25322531
function transitionTraces() {
2533-
for(var i = 0; i < basePlotModules.length; i++) {
2534-
basePlotModules[i].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);
2532+
for(var j = 0; j < basePlotModules.length; j++) {
2533+
basePlotModules[j].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);
25352534
}
25362535
}
25372536

0 commit comments

Comments
 (0)