From 412f57e9827019a6c13626176100030e8c983d1a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 28 May 2014 08:35:52 -0400 Subject: [PATCH] fix(config) show: rm cssLoad --- lib/client/config.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/client/config.js b/lib/client/config.js index ddce41c9..315cfa78 100644 --- a/lib/client/config.js +++ b/lib/client/config.js @@ -34,24 +34,18 @@ var CloudCmd, Util, DOM; } this.show = function() { - var funcs = [ - Util.exec.with(CloudCmd.getTemplate, Template, 'config'), - cssLoad - ]; + var exec = Util.exec, + funcs = [ + exec.with(CloudCmd.getTemplate, Template, 'config'), + exec.with(DOM.load.css, '/css/config.css') + ]; if (!Loading) { showLoad(); - Util.exec.parallel(funcs, fillTemplate); + exec.parallel(funcs, fillTemplate); } }; - function cssLoad(callback) { - DOM.cssLoad({ - src : '/css/config.css', - func: Util.exec.ret(callback) - }); - } - function fillTemplate(template) { if (!Template) Template = template;