dist/es5/dev/widget/Constructor.js
function destroy() {
                this.onDestroy();
                this.eventBus.clear();
                while (this._events.length > 0) {
                    this._events.shift().remove();
                }

                while (this._globalEvents.length > 0) {
                    this._globalEvents.shift().remove();
                }

                _destroy(this.children);

                if (this.elGroup !== undefined && this.el !== undefined) {
                    this.elGroup.delete(this.el);
                }
                if (this.root && this.root.remove) {
                    this.root.remove();
                }

                delete this.el;
            }
function destroy() {
                this.onDestroy();
                this.eventBus.clear();
                while (this._events.length > 0) {
                    this._events.shift().remove();
                }

                while (this._globalEvents.length > 0) {
                    this._globalEvents.shift().remove();
                }

                _destroy(this.children);

                if (this.elGroup !== undefined && this.el !== undefined) {
                    this.elGroup.delete(this.el);
                }
                if (this.root && this.root.remove) {
                    this.root.remove();
                }

                delete this.el;
            }
function destroy ( ) { this . onDestroy ( ) ; this . eventBus . clear ( ) ; while ( this . _events . length > 0 ) { this . _events . shift ( ) . remove ( ) ; } while ( this . _globalEvents . length > 0 ) { this . _globalEvents . shift ( ) . remove ( ) ; } _destroy ( this . children ) ; if ( this . elGroup !== undefined && this . el !== undefined ) { this . elGroup . delete ( this . el ) ; } if ( this . root && this . root . remove ) { this . root . remove ( ) ; } delete this . el ; }
Removing widget from Dom  @method destroy
Removing widget from Dom