mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(client) initModules
This commit is contained in:
parent
c2cfaf805e
commit
1423afbc66
1 changed files with 4 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue