We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d606511 commit 69f103cCopy full SHA for 69f103c
shelly/plotlyjs/static/plotlyjs/src/graph_obj.js
@@ -1914,8 +1914,9 @@ plots.purge = function(gd) {
1914
// clean up the gl and geo containers
1915
// TODO unify subplot creation/update with d3.selection.order
1916
// and/or subplot ids
1917
- gd._fullLayout._glcontainer.remove();
1918
- gd._fullLayout._geocontainer.remove();
+ var fullLayout = gd._fullLayout || {};
+ if(fullLayout._glcontainer !== undefined) fullLayout._glcontainer.remove();
1919
+ if(fullLayout._geocontainer !== undefined) fullLayout._geocontainer.remove();
1920
1921
// data and layout
1922
delete gd.data;
0 commit comments