mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
feature(modules) add pako
This commit is contained in:
parent
7857c14c1d
commit
bb6800ec90
16 changed files with 27 additions and 7 deletions
|
|
@ -453,13 +453,20 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, DiffProto, diff_match_patch, Zip, M
|
|||
|
||||
function zip(value, callback) {
|
||||
var dir = CloudCmd.LIBDIRCLIENT,
|
||||
url = join([
|
||||
dir + 'zip/dist/pako.js',
|
||||
dir + 'zip.js'
|
||||
]);
|
||||
url = dir + 'zip.js';
|
||||
|
||||
DOM.load.js(url, function() {
|
||||
Zip.pack(value, callback);
|
||||
exec.parallel([
|
||||
function(callback) {
|
||||
DOM.load.js(url, callback);
|
||||
},
|
||||
function(callback) {
|
||||
DOM.loadRemote('pako', callback);
|
||||
}
|
||||
], function(error) {
|
||||
if (error)
|
||||
alert(error);
|
||||
else
|
||||
Zip.pack(value, callback);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue