Skip to content

Commit 6d4c86b

Browse files
committed
making the warning invocation counting global, rather than per addFrame
1 parent 6efb0a7 commit 6d4c86b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plot_api/plot_api.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ var enforceAxisConstraints = axisConstraints.enforce;
4242
var cleanAxisConstraints = axisConstraints.clean;
4343
var axisIds = require('../plots/cartesian/axis_ids');
4444

45+
var numericNameWarningCount = 0;
46+
var numericNameWarningCountLimit = 5;
4547

4648
/**
4749
* Main plot-creation function
@@ -2600,9 +2602,6 @@ Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
26002602
Plotly.addFrames = function(gd, frameList, indices) {
26012603
gd = Lib.getGraphDiv(gd);
26022604

2603-
var numericNameWarningCount = 0;
2604-
var numericNameWarningCountLimit = 5;
2605-
26062605
if(frameList === null || frameList === undefined) {
26072606
return Promise.resolve();
26082607
}

0 commit comments

Comments
 (0)