lib/factories/module.plugin.factory.js
function loadModulePlugins(modulePlugins) {
        var serverModules = {};
        var me = this;

        // add modules from each plugin to the serverModules map
        _.each(modulePlugins, function (modulePlugin) {
            _.extend(serverModules, me.loadModules(modulePlugin.rootDir, modulePlugin.serverModuleDirs));
        });

        return serverModules;
    }
function loadModulePlugins(modulePlugins) {
        var serverModules = {};
        var me = this;

        // add modules from each plugin to the serverModules map
        _.each(modulePlugins, function (modulePlugin) {
            _.extend(serverModules, me.loadModules(modulePlugin.rootDir, modulePlugin.serverModuleDirs));
        });

        return serverModules;
    }
function loadModulePlugins ( modulePlugins ) { var serverModules = { } ; var me = this ; // add modules from each plugin to the serverModules map _ . each ( modulePlugins , function ( modulePlugin ) { _ . extend ( serverModules , me . loadModules ( modulePlugin . rootDir , modulePlugin . serverModuleDirs ) ) ; } ) ; return serverModules ; }
Loop through each plugin and add each module to a map
@param modulePlugins
Loop through each plugin and add each module to a map