12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 'use strict';
-
-
- function JSZip() {
-
- if(!(this instanceof JSZip)) {
- return new JSZip();
- }
-
- if(arguments.length) {
- throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
- }
-
-
-
-
-
-
- this.files = {};
-
- this.comment = null;
-
-
- this.root = "";
- this.clone = function() {
- var newObj = new JSZip();
- for (var i in this) {
- if (typeof this[i] !== "function") {
- newObj[i] = this[i];
- }
- }
- return newObj;
- };
- }
- JSZip.prototype = require('./object');
- JSZip.prototype.loadAsync = require('./load');
- JSZip.support = require('./support');
- JSZip.defaults = require('./defaults');
-
-
-
- JSZip.version = "3.2.0";
-
- JSZip.loadAsync = function (content, options) {
- return new JSZip().loadAsync(content, options);
- };
-
- JSZip.external = require("./external");
- module.exports = JSZip;
|