mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(ace) add files to combine
This commit is contained in:
parent
a1a304d326
commit
b125e049ef
1 changed files with 5 additions and 4 deletions
|
|
@ -112,8 +112,6 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
function initAce() {
|
||||
var lSession;
|
||||
|
||||
ace.require('ace/ext/language_tools');
|
||||
|
||||
Ace = ace.edit(Element);
|
||||
lSession = Ace.getSession();
|
||||
|
||||
|
|
@ -202,12 +200,15 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
var lFiles = [
|
||||
DIR + 'theme-tomorrow_night_blue.js',
|
||||
DIR + 'ext-language_tools.js',
|
||||
DIR + 'ace.js',
|
||||
DIR + 'ext-searchbox.js',
|
||||
DIR + 'snippets/javascript.js',
|
||||
DIR + 'mode-javascript.js',
|
||||
],
|
||||
lAce = DIR + 'ace.js',
|
||||
lURL = DOM.combineURL(lFiles);
|
||||
|
||||
|
||||
DOM.jsload(lURL, function() {
|
||||
DOM.anyLoadOnLoad([lURL, lAce], function() {
|
||||
Util.timeEnd(Name + ' load');
|
||||
Loading = false;
|
||||
Util.exec(pCallBack);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue