mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(config) if view is load config do not show
This commit is contained in:
parent
3100d370cd
commit
d741de75e8
1 changed files with 11 additions and 1 deletions
|
|
@ -16,13 +16,23 @@ var CloudCmd, Util, DOM;
|
|||
Config = this;
|
||||
|
||||
function init(pCallBack) {
|
||||
var func,
|
||||
isFunc = Util.isFunction(CloudCmd.View);
|
||||
|
||||
Loading = true;
|
||||
|
||||
if (isFunc)
|
||||
func = CloudCmd.View;
|
||||
else
|
||||
func = Util.exec;
|
||||
|
||||
Util.loadOnLoad([
|
||||
Config.show,
|
||||
function(callback) {
|
||||
Loading = false;
|
||||
Util.exec(callback);
|
||||
},
|
||||
CloudCmd.View,
|
||||
func,
|
||||
]);
|
||||
|
||||
DOM.Events.addKey(listener);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue