public/javascripts/yui/container/container.js
function () {

            var parent;

            if (this.element) {
                Event.purgeElement(this.element, true);
                parent = this.element.parentNode;
            }

            if (parent) {
                parent.removeChild(this.element);
            }
        
            this.element = null;
            this.header = null;
            this.body = null;
            this.footer = null;

            Module.textResizeEvent.unsubscribe(this.onDomResize, this);

            this.cfg.destroy();
            this.cfg = null;

            this.destroyEvent.fire();
        }
function () {

            var parent;

            if (this.element) {
                Event.purgeElement(this.element, true);
                parent = this.element.parentNode;
            }

            if (parent) {
                parent.removeChild(this.element);
            }
        
            this.element = null;
            this.header = null;
            this.body = null;
            this.footer = null;

            Module.textResizeEvent.unsubscribe(this.onDomResize, this);

            this.cfg.destroy();
            this.cfg = null;

            this.destroyEvent.fire();
        }
function ( ) { var parent ; if ( this . element ) { Event . purgeElement ( this . element , true ) ; parent = this . element . parentNode ; } if ( parent ) { parent . removeChild ( this . element ) ; } this . element = null ; this . header = null ; this . body = null ; this . footer = null ; Module . textResizeEvent . unsubscribe ( this . onDomResize , this ) ; this . cfg . destroy ( ) ; this . cfg = null ; this . destroyEvent . fire ( ) ; }
Removes the Module element from the DOM and sets all child elements
to null.
@method destroy
Removes the Module element from the DOM and sets all child elements to null .