File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -460,12 +460,6 @@ proto.handleHoverGl2d = function(ev) {
460460 } ) ;
461461} ;
462462
463- proto . cleanup = function ( ) {
464- this . element . innerHTML = '' ;
465- var modebarParent = this . element . parentNode ;
466- if ( modebarParent ) modebarParent . removeChild ( this . element ) ;
467- } ;
468-
469463proto . toImage = function ( ) {
470464
471465 var format = 'png' ;
@@ -520,7 +514,13 @@ proto.sendDataToCloud = function() {
520514 Plotly . Plots . sendDataToCloud ( gd ) ;
521515} ;
522516
523- module . exports = ModeBar ;
517+ proto . removeAllButtons = function ( ) {
518+ while ( this . element . firstChild ) {
519+ this . element . removeChild ( this . element . firstChild ) ;
520+ }
521+
522+ this . hasLogo = false ;
523+ } ;
524524function createModebar ( gd , buttons ) {
525525 var fullLayout = gd . _fullLayout ;
526526
You can’t perform that action at this time.
0 commit comments