lib/http/mvc/loader.js
function(map, callback) {

            // Walk through all modules in parallel
            async.map(map, function(module, callback) {

                // Filter all non-js files in parallel
                async.filter(
                    pathHelper.list(module.path),
                function(path, callback) {
                    callback(path.match(/\.js$/i));
                }, function(paths) {
                    module.paths = paths;
                    callback(null, module);
                });

            }, callback);
        }
function(map, callback) {

            // Walk through all modules in parallel
            async.map(map, function(module, callback) {

                // Filter all non-js files in parallel
                async.filter(
                    pathHelper.list(module.path),
                function(path, callback) {
                    callback(path.match(/\.js$/i));
                }, function(paths) {
                    module.paths = paths;
                    callback(null, module);
                });

            }, callback);
        }
function ( map , callback ) { // Walk through all modules in parallel async . map ( map , function ( module , callback ) { // Filter all non-js files in parallel async . filter ( pathHelper . list ( module . path ) , function ( path , callback ) { callback ( path . match ( / \.js$ / i ) ) ; } , function ( paths ) { module . paths = paths ; callback ( null , module ) ; } ) ; } , callback ) ; }
Search for javascript files
Search for javascript files