refactor(client) initModules

This commit is contained in:
coderaiser 2014-01-31 11:08:03 -05:00
parent c2cfaf805e
commit 1423afbc66

View file

@ -138,7 +138,7 @@ var Util, DOM, CloudFunc;
Util.loadOnLoad([
initModules,
baseInit,
Util.retFunc(CloudCmd.route, location.hash),
CloudCmd.route.bind(null, location.hash),
]);
},
lFunc = function(pCallBack) {
@ -220,14 +220,13 @@ var Util, DOM, CloudFunc;
storageObj = Util.findObjByNameInArr(pModules, STORAGE),
mod = Util.getNamesFromObjArray(storageObj);
for (i = 0, n = lMod.length; i < n; i++) {
for (i = 0, n = mod.length; i < n; i++) {
name = mod[i],
path = STORAGE + '/_' + lName.toLowerCase();
path = STORAGE + '/_' + name.toLowerCase();
load(lName, lPath);
load(name, path);
}
Util.exec(pCallBack);
});