fix(console) do not show console before load

This commit is contained in:
coderaiser 2013-07-08 17:05:23 +00:00
parent c55a88df2a
commit c37aca5876

View file

@ -14,12 +14,17 @@ var CloudCmd, Util, DOM, $;
Console = this;
this.init = function(pCallBack) {
var lViewFunc = CloudCmd.View.show || CloudCmd.View;
var lFunc, lIsFunc = Util.isFunction(CloudCmd.View);
if( lIsFunc)
lFunc = CloudCmd.View;
else
lFunc = Util.exec;
Util.loadOnLoad([
Console.show,
load,
lViewFunc,
lFunc,
DOM.jqueryLoad,
DOM.socketLoad
]);