Skip to content

Commit b4ea2ce

Browse files
committed
use plotMethods stash in range slider range plots
1 parent 13a15d1 commit b4ea2ce

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/rangeslider/draw.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -448,15 +448,16 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
448448

449449
Plots.supplyDefaults(mockFigure);
450450

451-
var xa = mockFigure._fullLayout.xaxis,
452-
ya = mockFigure._fullLayout[oppAxisName];
451+
var xa = mockFigure._fullLayout.xaxis;
452+
var ya = mockFigure._fullLayout[oppAxisName];
453453

454454
var plotinfo = {
455455
id: id,
456456
plotgroup: plotgroup,
457457
xaxis: xa,
458458
yaxis: ya,
459-
isRangePlot: true
459+
isRangePlot: true,
460+
plotMethods: opts._plotMethods
460461
};
461462

462463
if(isMainPlot) mainplotinfo = plotinfo;
@@ -466,6 +467,10 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
466467
}
467468

468469
Cartesian.rangePlot(gd, plotinfo, filterRangePlotCalcData(calcData, id));
470+
471+
// stash list of plot methods on range-plot for later,
472+
// so that they can be called to clear traces of 'gone' modules
473+
opts._plotMethods = plotinfo.plotMethods;
469474
});
470475
}
471476

0 commit comments

Comments
 (0)