mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(menu) if( -> if (
This commit is contained in:
parent
fedba5fad8
commit
3bfc4449df
1 changed files with 3 additions and 4 deletions
|
|
@ -102,15 +102,14 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
name : pName
|
||||
};
|
||||
|
||||
if( Util.isFunction(pCallBack) )
|
||||
if (Util.isFunction(pCallBack))
|
||||
lRet.callback = pCallBack;
|
||||
|
||||
else if ( Util.isObject(pCallBack) ){
|
||||
if(pCallBack.name)
|
||||
else if (Util.isObject(pCallBack))
|
||||
if (pCallBack.name)
|
||||
lRet.items = pCallBack;
|
||||
else
|
||||
lRet.items = getAllItems(pCallBack);
|
||||
}
|
||||
|
||||
return lRet;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue