Skip to content

Commit 19e2bb2

Browse files
committed
lint
1 parent 3c51bf3 commit 19e2bb2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/plot_api/plot_api.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,8 +2842,6 @@ function diffData(gd, oldFullData, newFullData, immutable, transition, newDataRe
28422842
flags: flags,
28432843
immutable: immutable,
28442844
transition: transition,
2845-
nChanges: 0,
2846-
nChangesAnim: 0,
28472845
newDataRevision: newDataRevision,
28482846
gd: gd
28492847
};

src/plots/plots.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ plots.transition2 = function(gd, restyleFlags, relayoutFlags, oldFullLayout) {
26452645
// time. In other words, if there's an axis transition, then set the data transition
26462646
// to instantaneous.
26472647
var traceTransitionOpts;
2648-
var transitionedTraces = [];
2648+
var transitionedTraces;
26492649

26502650
if(Object.keys(edits).length) {
26512651
for(i = 0; i < basePlotModules.length; i++) {
@@ -2654,13 +2654,13 @@ plots.transition2 = function(gd, restyleFlags, relayoutFlags, oldFullLayout) {
26542654
}
26552655
}
26562656

2657-
traceTransitionOpts = Lib.extendFlat({}, transitionOpts);
2658-
traceTransitionOpts.duration = 0;
26592657
// This means do not transition traces,
26602658
// this happens on layout-only (e.g. axis range) animations
2659+
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
26612660
transitionedTraces = null;
26622661
} else {
26632662
traceTransitionOpts = transitionOpts;
2663+
transitionedTraces = [];
26642664
for(i = 0; i < fullData.length; i++) {
26652665
transitionedTraces.push(i);
26662666
}

0 commit comments

Comments
 (0)