refactor(client) initModules

This commit is contained in:
coderaiser 2014-02-17 10:33:09 -05:00
parent 9bd2cbd5d6
commit 5e89e71c92

View file

@ -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) {