Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e18f3c1

Browse files
committed
loop over oldFullLayout._basePlotModules in Plots.cleanPlot
1 parent 19d24bb commit e18f3c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/plots.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ function hasPlotType(category) {
552552
plots.cleanPlot = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {
553553
var i, j;
554554

555-
var plotTypes = Object.keys(subplotsRegistry);
556-
for(i = 0; i < plotTypes.length; i++) {
557-
var _module = subplotsRegistry[plotTypes[i]];
555+
var basePlotModules = oldFullLayout._basePlotModules || [];
556+
for(i = 0; i < basePlotModules.length; i++) {
557+
var _module = basePlotModules[i];
558558

559559
if(_module.clean) {
560560
_module.clean(newFullData, newFullLayout, oldFullData, oldFullLayout);

0 commit comments

Comments
 (0)