demo/editor/kissy.js
function (runtime, mod) {
            if (mod.status != LOADED) {
                return;
            }

            var fn = mod.fn;

            if (typeof fn === 'function') {
                // 需要解开 index，相对路径
                // 但是需要保留 alias，防止值不对应
                mod.value = fn.apply(mod, Utils.getModules(runtime, mod.getRequiresWithAlias()));
            } else {
                mod.value = fn;
            }

            mod.status = ATTACHED;
        }
function (runtime, mod) {
            if (mod.status != LOADED) {
                return;
            }

            var fn = mod.fn;

            if (typeof fn === 'function') {
                // 需要解开 index，相对路径
                // 但是需要保留 alias，防止值不对应
                mod.value = fn.apply(mod, Utils.getModules(runtime, mod.getRequiresWithAlias()));
            } else {
                mod.value = fn;
            }

            mod.status = ATTACHED;
        }
function ( runtime , mod ) { if ( mod . status != LOADED ) { return ; } var fn = mod . fn ; if ( typeof fn === 'function' ) { // 需要解开 index，相对路径 // 但是需要保留 alias，防止值不对应 mod . value = fn . apply ( mod , Utils . getModules ( runtime , mod . getRequiresWithAlias ( ) ) ) ; } else { mod . value = fn ; } mod . status = ATTACHED ; }
Attach specified mod.
@param runtime Module container, such as KISSY
@param {KISSY.Loader.Module} mod module instance
Attach specified mod .