src/console/simpleyui.js
function(r, fromLoader) {
        var i, name, mod, details, req, use, 
            mods = YUI.Env.mods,
            Y    = this,
            done = Y.Env._attached,
            len  = r.length;

        for (i=0; i<len; i++) {
            name = r[i]; 
            mod  = mods[name];
            if (!done[name] && mod) {

                done[name] = true;
                details    = mod.details; 
                req        = details.requires; 
                use        = details.use;

                if (req && req.length) {
                    if (!Y._attach(req)) {
                        return false;
                    }
                }


                if (mod.fn) {
                    try {
                        mod.fn(Y, name);
                    } catch (e) {
                        Y.error('Attach error: ' + name, e, name);
                        return false;
                    }
                }

                if (use && use.length) {
                    if (!Y._attach(use)) {
                        return false;
                    }
                }
            }
        }

        return true;
    }
function(r, fromLoader) {
        var i, name, mod, details, req, use, 
            mods = YUI.Env.mods,
            Y    = this,
            done = Y.Env._attached,
            len  = r.length;

        for (i=0; i<len; i++) {
            name = r[i]; 
            mod  = mods[name];
            if (!done[name] && mod) {

                done[name] = true;
                details    = mod.details; 
                req        = details.requires; 
                use        = details.use;

                if (req && req.length) {
                    if (!Y._attach(req)) {
                        return false;
                    }
                }


                if (mod.fn) {
                    try {
                        mod.fn(Y, name);
                    } catch (e) {
                        Y.error('Attach error: ' + name, e, name);
                        return false;
                    }
                }

                if (use && use.length) {
                    if (!Y._attach(use)) {
                        return false;
                    }
                }
            }
        }

        return true;
    }
function ( r , fromLoader ) { var i , name , mod , details , req , use , mods = YUI . Env . mods , Y = this , done = Y . Env . _attached , len = r . length ; for ( i = 0 ; i < len ; i ++ ) { name = r [ i ] ; mod = mods [ name ] ; if ( ! done [ name ] && mod ) { done [ name ] = true ; details = mod . details ; req = details . requires ; use = details . use ; if ( req && req . length ) { if ( ! Y . _attach ( req ) ) { return false ; } } if ( mod . fn ) { try { mod . fn ( Y , name ) ; } catch ( e ) { Y . error ( 'Attach error: ' + name , e , name ) ; return false ; } } if ( use && use . length ) { if ( ! Y . _attach ( use ) ) { return false ; } } } } return true ; }
Executes the function associated with each required
module, binding the module to the YUI instance.
@method _attach
@private
Executes the function associated with each required module binding the module to the YUI instance .