demo/editor/kissy.js
function (runtime, modNames) {
            var mods = [runtime], mod,
                unalias,
                allOk,
                m,
                runtimeMods = runtime.Env.mods;

            S.each(modNames, function (modName) {
                mod = runtimeMods[modName];
                if (!mod || mod.getType() != 'css') {
                    unalias = Utils.unalias(runtime, modName);
                    allOk = S.reduce(unalias, function (a, n) {
                        m = runtimeMods[n];
                        return a && m && m.status == ATTACHED;
                    }, true);
                    if (allOk) {
                        mods.push(runtimeMods[unalias[0]].value);
                    } else {
                        mods.push(null);
                    }
                }
            });

            return mods;
        }
function (runtime, modNames) {
            var mods = [runtime], mod,
                unalias,
                allOk,
                m,
                runtimeMods = runtime.Env.mods;

            S.each(modNames, function (modName) {
                mod = runtimeMods[modName];
                if (!mod || mod.getType() != 'css') {
                    unalias = Utils.unalias(runtime, modName);
                    allOk = S.reduce(unalias, function (a, n) {
                        m = runtimeMods[n];
                        return a && m && m.status == ATTACHED;
                    }, true);
                    if (allOk) {
                        mods.push(runtimeMods[unalias[0]].value);
                    } else {
                        mods.push(null);
                    }
                }
            });

            return mods;
        }
function ( runtime , modNames ) { var mods = [ runtime ] , mod , unalias , allOk , m , runtimeMods = runtime . Env . mods ; S . each ( modNames , function ( modName ) { mod = runtimeMods [ modName ] ; if ( ! mod || mod . getType ( ) != 'css' ) { unalias = Utils . unalias ( runtime , modName ) ; allOk = S . reduce ( unalias , function ( a , n ) { m = runtimeMods [ n ] ; return a && m && m . status == ATTACHED ; } , true ) ; if ( allOk ) { mods . push ( runtimeMods [ unalias [ 0 ] ] . value ) ; } else { mods . push ( null ) ; } } } ) ; return mods ; }
Get module values
@param runtime Module container, such as KISSY
@param {String[]} modNames module names
@return {Array} module values
Get module values