Skip to content

Commit 42c96ef

Browse files
committed
Destroy modebar in purge step
1 parent 4248c00 commit 42c96ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/plots.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ plots.purge = function(gd) {
682682
if(fullLayout._glcontainer !== undefined) fullLayout._glcontainer.remove();
683683
if(fullLayout._geocontainer !== undefined) fullLayout._geocontainer.remove();
684684

685+
// remove modebar
686+
if(fullLayout._modeBar) fullLayout._modeBar.destroy();
687+
685688
// data and layout
686689
delete gd.data;
687690
delete gd.layout;

0 commit comments

Comments
 (0)