mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(util) retExec -> exec.ret
This commit is contained in:
parent
58a3a6ff3e
commit
7332c7b325
15 changed files with 38 additions and 38 deletions
|
|
@ -360,7 +360,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
|
||||
function getEditConfig(callback) {
|
||||
var CONFIG_PATH = '/json/edit.json',
|
||||
func = Util.retExec(callback);
|
||||
func = Util.exec.ret(callback);
|
||||
|
||||
Util.exec.if(EditConfig, function() {
|
||||
func(EditConfig);
|
||||
|
|
@ -495,7 +495,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
|
||||
Msg.innerHTML = text;
|
||||
DOM.show(Msg);
|
||||
setTimeout(Util.retExec(DOM.hide, Msg), HIDE_TIME);
|
||||
setTimeout(Util.exec.ret(DOM.hide, Msg), HIDE_TIME);
|
||||
};
|
||||
|
||||
init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue