mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(edit) load
This commit is contained in:
parent
a7956d4a2a
commit
69014c1d05
1 changed files with 4 additions and 6 deletions
|
|
@ -405,22 +405,20 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
}
|
||||
|
||||
function load(callback) {
|
||||
var files = [
|
||||
var url = CloudFunc.getJoinURL([
|
||||
DIR + 'theme-tomorrow_night_blue.js',
|
||||
DIR + 'ext-language_tools.js',
|
||||
DIR + 'ext-searchbox.js',
|
||||
DIR + 'ext-modelist.js'
|
||||
],
|
||||
|
||||
ace = DIR + 'ace.js',
|
||||
url = CloudFunc.getJoinURL(files);
|
||||
]);
|
||||
|
||||
Util.time(Name + ' load');
|
||||
|
||||
DOM.loadRemote('ace', function() {
|
||||
DOM.load.js([url], function() {
|
||||
Util.timeEnd(Name + ' load');
|
||||
Loading = false;
|
||||
|
||||
Util.timeEnd(Name + ' load');
|
||||
Util.exec(callback);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue