mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update archive.js
This commit is contained in:
parent
701be4c351
commit
caa56cedb8
|
@ -15,11 +15,13 @@ function ArchiveObject(engine) {
|
||||||
|
|
||||||
this.setReadFormat = function(readFormat) {
|
this.setReadFormat = function(readFormat) {
|
||||||
this.readFormat = readFormat;
|
this.readFormat = readFormat;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setWriteFormat = function(writeFormat) {
|
this.setWriteFormat = function(writeFormat) {
|
||||||
this.writeFormat = writeFormat;
|
this.writeFormat = writeFormat;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -96,6 +98,7 @@ function ArchiveObject(engine) {
|
||||||
|
|
||||||
this.addFile = function(file) {
|
this.addFile = function(file) {
|
||||||
this.patterns.push(file);
|
this.patterns.push(file);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -104,6 +107,8 @@ function ArchiveObject(engine) {
|
||||||
if (typeof engine === "undefined") {
|
if (typeof engine === "undefined") {
|
||||||
this.setEngine("cabinet");
|
this.setEngine("cabinet");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.create();
|
this.create();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user