mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
refactor(util) exec
This commit is contained in:
parent
35816b5121
commit
134c89912d
1 changed files with 2 additions and 1 deletions
|
|
@ -809,9 +809,10 @@
|
|||
*/
|
||||
this.exec = function(callback) {
|
||||
var ret,
|
||||
isFunc = Util.isFunction(callback),
|
||||
args = Util.slice(arguments, 1);
|
||||
|
||||
if (Util.isFunction(callback))
|
||||
if (isFunc)
|
||||
ret = callback.apply(null, args);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue