mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 00:21:18 +00:00
refactor(edit) setEmmet: Util.exec(callback) -> callback
This commit is contained in:
parent
83e2ba042a
commit
cacec6ad78
1 changed files with 5 additions and 4 deletions
|
|
@ -181,9 +181,9 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
}, function(callback) {
|
||||
var url;
|
||||
|
||||
if (!isHTML)
|
||||
Util.exec(callback);
|
||||
else {
|
||||
if (!isHTML) {
|
||||
callback();
|
||||
} else {
|
||||
url = join([
|
||||
DIR + 'emmet.js',
|
||||
DIR + 'ext-emmet.js'
|
||||
|
|
@ -192,7 +192,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
DOM.load.js(url, function() {
|
||||
Emmet = ace.require('ace/ext/emmet');
|
||||
Emmet.setCore(window.emmet);
|
||||
Util.exec(callback);
|
||||
|
||||
callback();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue