From 5e89e71c92e6df360eeef5cde9384b8ec89a378b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 17 Feb 2014 10:33:09 -0500 Subject: [PATCH] refactor(client) initModules --- lib/client.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/client.js b/lib/client.js index 7a3f1300..2ff03b8a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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) {