Simplify module assignment.

This commit is contained in:
John-David Dalton
2016-05-01 23:37:13 -07:00
parent edd7c2f0b1
commit 767f9c6bce

View File

@@ -692,10 +692,8 @@
'_ListCache', '_ListCache',
'_MapCache', '_MapCache',
'_Stack' '_Stack'
], function(relPath) { ], function(funcName) {
var func = require(path.join(basePath, relPath)), var func = require(path.join(basePath, funcName));
funcName = path.basename(relPath);
_['_' + funcName] = func[funcName] || func['default'] || func; _['_' + funcName] = func[funcName] || func['default'] || func;
}); });
} }