lib/kissy/seed.js
function (module) {
            var factory = module.factory,
                exports;

            if (typeof factory === 'function') {
                // compatible and efficiency
                // KISSY.add(function(S,undefined){})
                var require;
                if (module.requires && module.requires.length && module.cjs) {
                    require = bind(module.require, module);
                }
                // 需要解开 index，相对路径
                // 但是需要保留 alias，防止值不对应
                //noinspection JSUnresolvedFunction
                exports = factory.apply(module,
                    // KISSY.add(function(S){module.require}) lazy initialize
                    (module.cjs ? [S, require, module.exports, module] :
                        Utils.getModules(module.getRequiresWithAlias())));
                if (exports !== undefined) {
                    //noinspection JSUndefinedPropertyAssignment
                    module.exports = exports;
                }
            } else {
                //noinspection JSUndefinedPropertyAssignment
                module.exports = factory;
            }

            module.status = ATTACHED;
        }
function (module) {
            var factory = module.factory,
                exports;

            if (typeof factory === 'function') {
                // compatible and efficiency
                // KISSY.add(function(S,undefined){})
                var require;
                if (module.requires && module.requires.length && module.cjs) {
                    require = bind(module.require, module);
                }
                // 需要解开 index，相对路径
                // 但是需要保留 alias，防止值不对应
                //noinspection JSUnresolvedFunction
                exports = factory.apply(module,
                    // KISSY.add(function(S){module.require}) lazy initialize
                    (module.cjs ? [S, require, module.exports, module] :
                        Utils.getModules(module.getRequiresWithAlias())));
                if (exports !== undefined) {
                    //noinspection JSUndefinedPropertyAssignment
                    module.exports = exports;
                }
            } else {
                //noinspection JSUndefinedPropertyAssignment
                module.exports = factory;
            }

            module.status = ATTACHED;
        }
function ( module ) { var factory = module . factory , exports ; if ( typeof factory === 'function' ) { // compatible and efficiency // KISSY.add(function(S,undefined){}) var require ; if ( module . requires && module . requires . length && module . cjs ) { require = bind ( module . require , module ) ; } // 需要解开 index，相对路径 // 但是需要保留 alias，防止值不对应 //noinspection JSUnresolvedFunction exports = factory . apply ( module , // KISSY.add(function(S){module.require}) lazy initialize ( module . cjs ? [ S , require , module . exports , module ] : Utils . getModules ( module . getRequiresWithAlias ( ) ) ) ) ; if ( exports !== undefined ) { //noinspection JSUndefinedPropertyAssignment module . exports = exports ; } } else { //noinspection JSUndefinedPropertyAssignment module . exports = factory ; } module . status = ATTACHED ; }
Attach specified module.
@param {KISSY.Loader.Module} module module instance
Attach specified module .