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

        // Default the container if unset or not a div
        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
            // Only position absolutely if an in-DOM element is not supplied
            Dom.addClass(this._elContainer,"yui-log-container");
        }

        Dom.addClass(this._elContainer,"yui-log");

        // If implementer has provided container values, trust and set those
        var style = this._elContainer.style,
            styleProps = ['width','right','top','fontSize'],
            prop,i;

        for (i = styleProps.length - 1; i >= 0; --i) {
            prop = styleProps[i];
            if (this[prop]){ 
                style[prop] = this[prop];
            }
        }

        if(this.left) {
            style.left  = this.left;
            style.right = "auto";
        }
        if(this.bottom) {
            style.bottom = this.bottom;
            style.top    = "auto";
        }

        // Opera needs a little prodding to reflow sometimes
        if (YAHOO.env.ua.opera) {
            d.body.style += '';
        }

    }
function() {

        // Default the container if unset or not a div
        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
            // Only position absolutely if an in-DOM element is not supplied
            Dom.addClass(this._elContainer,"yui-log-container");
        }

        Dom.addClass(this._elContainer,"yui-log");

        // If implementer has provided container values, trust and set those
        var style = this._elContainer.style,
            styleProps = ['width','right','top','fontSize'],
            prop,i;

        for (i = styleProps.length - 1; i >= 0; --i) {
            prop = styleProps[i];
            if (this[prop]){ 
                style[prop] = this[prop];
            }
        }

        if(this.left) {
            style.left  = this.left;
            style.right = "auto";
        }
        if(this.bottom) {
            style.bottom = this.bottom;
            style.top    = "auto";
        }

        // Opera needs a little prodding to reflow sometimes
        if (YAHOO.env.ua.opera) {
            d.body.style += '';
        }

    }
function ( ) { // Default the container if unset or not a div if ( ! this . _elContainer || ! / div$ / i . test ( this . _elContainer . tagName ) ) { this . _elContainer = d . body . insertBefore ( make ( "div" ) , d . body . firstChild ) ; // Only position absolutely if an in-DOM element is not supplied Dom . addClass ( this . _elContainer , "yui-log-container" ) ; } Dom . addClass ( this . _elContainer , "yui-log" ) ; // If implementer has provided container values, trust and set those var style = this . _elContainer . style , styleProps = [ 'width' , 'right' , 'top' , 'fontSize' ] , prop , i ; for ( i = styleProps . length - 1 ; i >= 0 ; -- i ) { prop = styleProps [ i ] ; if ( this [ prop ] ) { style [ prop ] = this [ prop ] ; } } if ( this . left ) { style . left = this . left ; style . right = "auto" ; } if ( this . bottom ) { style . bottom = this . bottom ; style . top = "auto" ; } // Opera needs a little prodding to reflow sometimes if ( YAHOO . env . ua . opera ) { d . body . style += '' ; } }
Initializes the primary container element.

@method _initContainerEl
@private
Initializes the primary container element .