src/console/simpleyui.js
function() {
        var i     = 0, 
            Y     = this, 
            args  = arguments, 
            l     = args.length, 
            gconf = (typeof YUI_config !== 'undefined') && YUI_config;

        if (!(Y instanceof YUI)) {
            Y = new YUI();
        } else {
            // set up the core environment
            Y._init();
            if (gconf) {
                Y.applyConfig(gconf);
            }
            // bind the specified additional modules for this instance
            if (!l) {
                Y._setup();
            }
        }

        if (l) {
            for (; i<l; i++) {
                Y.applyConfig(args[i]);
            }

            Y._setup();
        }

        return Y;
    }
function() {
        var i     = 0, 
            Y     = this, 
            args  = arguments, 
            l     = args.length, 
            gconf = (typeof YUI_config !== 'undefined') && YUI_config;

        if (!(Y instanceof YUI)) {
            Y = new YUI();
        } else {
            // set up the core environment
            Y._init();
            if (gconf) {
                Y.applyConfig(gconf);
            }
            // bind the specified additional modules for this instance
            if (!l) {
                Y._setup();
            }
        }

        if (l) {
            for (; i<l; i++) {
                Y.applyConfig(args[i]);
            }

            Y._setup();
        }

        return Y;
    }
function ( ) { var i = 0 , Y = this , args = arguments , l = args . length , gconf = ( typeof YUI_config !== 'undefined' ) && YUI_config ; if ( ! ( Y instanceof YUI ) ) { Y = new YUI ( ) ; } else { // set up the core environment Y . _init ( ) ; if ( gconf ) { Y . applyConfig ( gconf ) ; } // bind the specified additional modules for this instance if ( ! l ) { Y . _setup ( ) ; } } if ( l ) { for ( ; i < l ; i ++ ) { Y . applyConfig ( args [ i ] ) ; } Y . _setup ( ) ; } return Y ; }
The YUI global namespace object.  If YUI is already defined, the
existing YUI object will not be overwritten so that defined
namespaces are preserved.  It is the constructor for the object
the end user interacts with.  As indicated below, each instance
has full custom event support, but only if the event system
is available.

@class YUI
@constructor
@global
@uses EventTarget
@param o* 0..n optional configuration objects.  these values
are store in Y.config.  See config for the list of supported
properties.
 /*global YUI /*global YUI_config
The YUI global namespace object . If YUI is already defined the existing YUI object will not be overwritten so that defined namespaces are preserved . It is the constructor for the object the end user interacts with . As indicated below each instance has full custom event support but only if the event system is available .