stdlib/widget.js
function destroy() {
            if (this.__destroyed === true) {
                console.warn('calling on destroyed object');
            }

            this.dispatch('beforeDestroy');
            this._destroy();
            this.dispatch('destroy');

            this.eventListeners = null;
            this.__destroyed    = true;

            return null;
        }
function destroy() {
            if (this.__destroyed === true) {
                console.warn('calling on destroyed object');
            }

            this.dispatch('beforeDestroy');
            this._destroy();
            this.dispatch('destroy');

            this.eventListeners = null;
            this.__destroyed    = true;

            return null;
        }
function destroy ( ) { if ( this . __destroyed === true ) { console . warn ( 'calling on destroyed object' ) ; } this . dispatch ( 'beforeDestroy' ) ; this . _destroy ( ) ; this . dispatch ( 'destroy' ) ; this . eventListeners = null ; this . __destroyed = true ; return null ; }
Destroy public method, this one should not be replaced
@property destroy <public> [Function]
@method
@return null [null]
Destroy public method this one should not be replaced