mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(client) initModules
This commit is contained in:
parent
9bd2cbd5d6
commit
5e89e71c92
1 changed files with 6 additions and 8 deletions
|
|
@ -196,15 +196,13 @@ var Util, DOM, CloudFunc;
|
|||
pModules = pModules || [];
|
||||
|
||||
var i, n, module, storageObj, mod, name, path,
|
||||
STORAGE = 'storage',
|
||||
showLoadFunc = Util.bind(Images.showLoad, {
|
||||
top:true
|
||||
}),
|
||||
STORAGE = 'storage',
|
||||
showLoad = Images.showLoad.bind(Images),
|
||||
|
||||
doBefore = {
|
||||
'edit' : showLoadFunc,
|
||||
'view' : showLoadFunc,
|
||||
'menu' : showLoadFunc
|
||||
doBefore = {
|
||||
'edit' : showLoad,
|
||||
'view' : showLoad,
|
||||
'menu' : showLoad
|
||||
},
|
||||
|
||||
load = function(name, path, func) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue