Commit d665d419 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 313903a5
...@@ -174,7 +174,10 @@ ...@@ -174,7 +174,10 @@
if (null != retFiles) if (null != retFiles)
{ {
t.files = retFiles; for (var id in retFiles) {
t.files[id] = new JSZipObjectWrapper(retFiles[id]);
}
resolve(t); resolve(t);
} }
else else
...@@ -182,11 +185,6 @@ ...@@ -182,11 +185,6 @@
reject(new Error("Failed archive")); reject(new Error("Failed archive"));
} }
}).then(function(zip) {
for (var id in zip.files) {
t.files[id] = new JSZipObjectWrapper(zip.files[id]);
}
return t;
}); });
} }
...@@ -199,7 +197,7 @@ ...@@ -199,7 +197,7 @@
}; };
JSZipWrapper.prototype.close = function() { JSZipWrapper.prototype.close = function() {
if (window["native"]) if (window["native"])
window["native"]["ZipClose"]; window["native"]["ZipClose"]();
}; };
function JSZipObjectWrapper(data) { function JSZipObjectWrapper(data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment