@@ -492,7 +492,7 @@ plots.supplyDefaults = function(gd) {
492
492
plots . supplyLayoutModuleDefaults ( newLayout , newFullLayout , newFullData ) ;
493
493
494
494
// clean subplots and other artifacts from previous plot calls
495
- cleanPlot ( newFullData , newFullLayout , oldFullData , oldFullLayout ) ;
495
+ plots . cleanPlot ( newFullData , newFullLayout , oldFullData , oldFullLayout ) ;
496
496
497
497
/*
498
498
* Relink functions and underscore attributes to promote consistency between
@@ -520,7 +520,7 @@ plots.supplyDefaults = function(gd) {
520
520
}
521
521
} ;
522
522
523
- function cleanPlot ( newFullData , newFullLayout , oldFullData , oldFullLayout ) {
523
+ plots . cleanPlot = function ( newFullData , newFullLayout , oldFullData , oldFullLayout ) {
524
524
var i , j ;
525
525
526
526
var plotTypes = Object . keys ( subplotsRegistry ) ;
@@ -755,9 +755,9 @@ plots.supplyLayoutModuleDefaults = function(layoutIn, layoutOut, fullData) {
755
755
}
756
756
} ;
757
757
758
+ // Remove all plotly attributes from a div so it can be replotted fresh
759
+ // TODO: these really need to be encapsulated into a much smaller set...
758
760
plots . purge = function ( gd ) {
759
- // remove all plotly attributes from a div so it can be replotted fresh
760
- // TODO: these really need to be encapsulated into a much smaller set...
761
761
762
762
// note: we DO NOT remove _context because it doesn't change when we insert
763
763
// a new plot, and may have been set outside of our scope.
0 commit comments