lib/Ext/Component.js
function() {
        this.destroy = Ext.emptyFn;

        var parent = this.getParent(),
            referenceList = this.referenceList,
            i, ln, reference;

        this.isDestroying = true;
        Ext.destroy(this.getTranslatable(), this.getPlugins());

        // Remove this component itself from the container if it's currently contained
        if (parent) {
            parent.remove(this, false);
        }

        // Destroy all element references
        for (i = 0, ln = referenceList.length; i < ln; i++) {
            reference = referenceList[i];
            this[reference].destroy();
            delete this[reference];
        }

        Ext.destroy(this.innerHtmlElement);
        this.setRecord(null);

        this.callSuper();

        Ext.ComponentManager.unregister(this);
    }
function() {
        this.destroy = Ext.emptyFn;

        var parent = this.getParent(),
            referenceList = this.referenceList,
            i, ln, reference;

        this.isDestroying = true;
        Ext.destroy(this.getTranslatable(), this.getPlugins());

        // Remove this component itself from the container if it's currently contained
        if (parent) {
            parent.remove(this, false);
        }

        // Destroy all element references
        for (i = 0, ln = referenceList.length; i < ln; i++) {
            reference = referenceList[i];
            this[reference].destroy();
            delete this[reference];
        }

        Ext.destroy(this.innerHtmlElement);
        this.setRecord(null);

        this.callSuper();

        Ext.ComponentManager.unregister(this);
    }
function ( ) { this . destroy = Ext . emptyFn ; var parent = this . getParent ( ) , referenceList = this . referenceList , i , ln , reference ; this . isDestroying = true ; Ext . destroy ( this . getTranslatable ( ) , this . getPlugins ( ) ) ; // Remove this component itself from the container if it's currently contained if ( parent ) { parent . remove ( this , false ) ; } // Destroy all element references for ( i = 0 , ln = referenceList . length ; i < ln ; i ++ ) { reference = referenceList [ i ] ; this [ reference ] . destroy ( ) ; delete this [ reference ] ; } Ext . destroy ( this . innerHtmlElement ) ; this . setRecord ( null ) ; this . callSuper ( ) ; Ext . ComponentManager . unregister ( this ) ; }
Destroys this Component. If it is currently added to a Container it will first be removed from that Container.
All Ext.Element references are also deleted and the Component is de-registered from Ext.ComponentManager
Destroys this Component . If it is currently added to a Container it will first be removed from that Container . All Ext . Element references are also deleted and the Component is de - registered from Ext . ComponentManager