mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(modules) add ace
This commit is contained in:
parent
ced6c3d9fd
commit
fbcd69aea0
2 changed files with 11 additions and 4 deletions
|
|
@ -20,6 +20,11 @@
|
|||
"version": "1.0.4",
|
||||
"local": "/socket.io/socket.io.js",
|
||||
"remote": "//cdn.socket.io/socket.io-{{ version }}.js"
|
||||
}, {
|
||||
"name": "ace",
|
||||
"version": "1.1.3",
|
||||
"local": "/lib/client/edit/ace.js",
|
||||
"remote": "//cdnjs.cloudflare.com/ajax/libs/ace/{{ version }}/ace.js"
|
||||
}, {
|
||||
"name": "fancybox",
|
||||
"version": "2.1.5",
|
||||
|
|
|
|||
|
|
@ -417,10 +417,12 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
|
||||
Util.time(Name + ' load');
|
||||
|
||||
DOM.load.series([ace, url], function() {
|
||||
Util.timeEnd(Name + ' load');
|
||||
Loading = false;
|
||||
Util.exec(callback);
|
||||
DOM.loadRemote('ace', function() {
|
||||
DOM.load.js([url], function() {
|
||||
Util.timeEnd(Name + ' load');
|
||||
Loading = false;
|
||||
Util.exec(callback);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue