File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
shelly/plotlyjs/static/plotlyjs/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1908,6 +1908,12 @@ plots.purge = function(gd) {
1908
1908
// note: we DO NOT remove _context because it doesn't change when we insert
1909
1909
// a new plot, and may have been set outside of our scope.
1910
1910
1911
+ // clean up the gl and geo containers
1912
+ // TODO unify subplot creation/update with d3.selection.order
1913
+ // and/or subplot ids
1914
+ gd . _fullLayout . _glcontainer . remove ( ) ;
1915
+ gd . _fullLayout . _geocontainer . remove ( ) ;
1916
+
1911
1917
// data and layout
1912
1918
delete gd . data ;
1913
1919
delete gd . layout ;
@@ -1919,6 +1925,7 @@ plots.purge = function(gd) {
1919
1925
1920
1926
delete gd . fid ;
1921
1927
1928
+
1922
1929
delete gd . undoqueue ; // action queue
1923
1930
delete gd . undonum ;
1924
1931
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