mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(util) retExec: add unshift
This commit is contained in:
parent
c0a6d9bf75
commit
a89ce1eb9f
1 changed files with 4 additions and 2 deletions
|
|
@ -723,9 +723,11 @@
|
|||
*/
|
||||
this.retExec = function() {
|
||||
var result,
|
||||
exec = Util.exec.bind(Util);
|
||||
exec = Util.exec.bind(Util),
|
||||
args = Util.slice(arguments);
|
||||
|
||||
result = Util.bind.apply(exec, arguments);
|
||||
args.unshift(exec);
|
||||
result = Util.bind.apply(null, args);
|
||||
|
||||
return result;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue