mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(util) exec: apply(this) -> apply(null)
This commit is contained in:
parent
ff500ac94d
commit
f28449d24a
1 changed files with 2 additions and 2 deletions
|
|
@ -870,12 +870,12 @@ Util = exports || {};
|
|||
[].shift.call(arguments);
|
||||
if (pCallBack) {
|
||||
if (Util.isFunction(pCallBack))
|
||||
lRet = pCallBack.apply(this, arguments);
|
||||
lRet = pCallBack.apply(null, arguments);
|
||||
else {
|
||||
lCallBack = pCallBack.callback || pCallBack.success;
|
||||
/* add first element */
|
||||
[].unshift.call(arguments, lCallBack);
|
||||
lRet = Util.exec.apply(this, arguments);
|
||||
lRet = Util.exec.apply(null, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue