mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) loadFiles: multi var
This commit is contained in:
parent
90ff40fbf0
commit
d3ea853e4c
1 changed files with 9 additions and 9 deletions
|
|
@ -150,19 +150,19 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format;
|
|||
}
|
||||
|
||||
function loadFiles(element, callback) {
|
||||
var prefix = CloudCmd.PREFIX,
|
||||
prefixName = prefix + '/' + EditorName,
|
||||
url = prefixName + '/' + EditorName + '.js';
|
||||
var prefix = CloudCmd.PREFIX;
|
||||
var prefixName = prefix + '/' + EditorName;
|
||||
var url = prefixName + '/' + EditorName + '.js';
|
||||
|
||||
Util.time(Name + ' load');
|
||||
|
||||
DOM.load.js(url, function() {
|
||||
var word = window[EditorName],
|
||||
options = {
|
||||
maxSize : CloudFunc.MAX_FILE_SIZE,
|
||||
prefix : prefixName,
|
||||
socketPath : prefix
|
||||
};
|
||||
var word = window[EditorName];
|
||||
var options = {
|
||||
maxSize : CloudFunc.MAX_FILE_SIZE,
|
||||
prefix : prefixName,
|
||||
socketPath : prefix
|
||||
};
|
||||
|
||||
word(element, options, function(ed) {
|
||||
Util.timeEnd(Name + ' load');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue