lil-gui/lil-gui.umd.js
/**
		 * Destroys all DOM elements and event listeners associated with this GUI
		 */
Destroys all DOM elements and event listeners associated with this GUI
Destroys all DOM elements and event listeners associated with this GUI
destroy() {
			if ( this.parent ) {
				this.parent.children.splice( this.parent.children.indexOf( this ), 1 );
				this.parent.folders.splice( this.parent.folders.indexOf( this ), 1 );
			}
			if ( this.domElement.parentElement ) {
				this.domElement.parentElement.removeChild( this.domElement );
			}
			Array.from( this.children ).forEach( c => c.destroy() );
		}
destroy ( ) { if ( this . parent ) { this . parent . children . splice ( this . parent . children . indexOf ( this ) , 1 ) ; this . parent . folders . splice ( this . parent . folders . indexOf ( this ) , 1 ) ; } if ( this . domElement . parentElement ) { this . domElement . parentElement . removeChild ( this . domElement ) ; } Array . from ( this . children ) . forEach ( c => c . destroy ( ) ) ; }
Destroys all DOM elements and event listeners associated with this GUI
Destroys all DOM elements and event listeners associated with this GUI