public/javascripts/yui/logger/logger.js
function() {
        // Destroy header if present
        if(this._elHd) {
            // Unhook DOM events
            Event.purgeElement(this._elHd, true);

            // Remove DOM elements
            this._elHd.innerHTML = "";
        }
        
        // Create header
        // TODO: refactor this into an innerHTML
        this._elHd = make("div",{
            id: 'yui-log-hd' + this._sName,
            className: "yui-log-hd"
        });

        this._elCollapse = make("div",{ className: 'yui-log-btns' });

        this._btnCollapse = make("input",{
            type: 'button',
            className: 'yui-log-button',
            value: 'Collapse'
        });
        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);


        this._title = make("h4",{ innerHTML : "Logger Console" });

        this._elCollapse.appendChild(this._btnCollapse);
        this._elHd.appendChild(this._elCollapse);
        this._elHd.appendChild(this._title);
        this._elContainer.appendChild(this._elHd);
    }
function() {
        // Destroy header if present
        if(this._elHd) {
            // Unhook DOM events
            Event.purgeElement(this._elHd, true);

            // Remove DOM elements
            this._elHd.innerHTML = "";
        }
        
        // Create header
        // TODO: refactor this into an innerHTML
        this._elHd = make("div",{
            id: 'yui-log-hd' + this._sName,
            className: "yui-log-hd"
        });

        this._elCollapse = make("div",{ className: 'yui-log-btns' });

        this._btnCollapse = make("input",{
            type: 'button',
            className: 'yui-log-button',
            value: 'Collapse'
        });
        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);


        this._title = make("h4",{ innerHTML : "Logger Console" });

        this._elCollapse.appendChild(this._btnCollapse);
        this._elHd.appendChild(this._elCollapse);
        this._elHd.appendChild(this._title);
        this._elContainer.appendChild(this._elHd);
    }
function ( ) { // Destroy header if present if ( this . _elHd ) { // Unhook DOM events Event . purgeElement ( this . _elHd , true ) ; // Remove DOM elements this . _elHd . innerHTML = "" ; } // Create header // TODO: refactor this into an innerHTML this . _elHd = make ( "div" , { id : 'yui-log-hd' + this . _sName , className : "yui-log-hd" } ) ; this . _elCollapse = make ( "div" , { className : 'yui-log-btns' } ) ; this . _btnCollapse = make ( "input" , { type : 'button' , className : 'yui-log-button' , value : 'Collapse' } ) ; Event . on ( this . _btnCollapse , 'click' , this . _onClickCollapseBtn , this ) ; this . _title = make ( "h4" , { innerHTML : "Logger Console" } ) ; this . _elCollapse . appendChild ( this . _btnCollapse ) ; this . _elHd . appendChild ( this . _elCollapse ) ; this . _elHd . appendChild ( this . _title ) ; this . _elContainer . appendChild ( this . _elHd ) ; }
Initializes the header element.

@method _initHeaderEl
@private
Initializes the header element .