File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
shelly/plotlyjs/static/plotlyjs/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1923,6 +1923,13 @@ plots.purge = function(gd) {
1923
1923
// note: we DO NOT remove _context because it doesn't change when we insert
1924
1924
// a new plot, and may have been set outside of our scope.
1925
1925
1926
+ // clean up the gl and geo containers
1927
+ // TODO unify subplot creation/update with d3.selection.order
1928
+ // and/or subplot ids
1929
+ var fullLayout = gd . _fullLayout || { } ;
1930
+ if ( fullLayout . _glcontainer !== undefined ) fullLayout . _glcontainer . remove ( ) ;
1931
+ if ( fullLayout . _geocontainer !== undefined ) fullLayout . _geocontainer . remove ( ) ;
1932
+
1926
1933
// data and layout
1927
1934
delete gd . data ;
1928
1935
delete gd . layout ;
@@ -1934,6 +1941,7 @@ plots.purge = function(gd) {
1934
1941
1935
1942
delete gd . fid ;
1936
1943
1944
+
1937
1945
delete gd . undoqueue ; // action queue
1938
1946
delete gd . undonum ;
1939
1947
delete gd . autoplay ; // are we doing an action that doesn't go in undo queue?
You can’t perform that action at this time.
0 commit comments