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',
'_MapCache',
'_Stack'
], function(relPath) {
var func = require(path.join(basePath, relPath)),
funcName = path.basename(relPath);
], function(funcName) {
var func = require(path.join(basePath, funcName));
_['_' + funcName] = func[funcName] || func['default'] || func;
});
}