src/util/CrosswalkZip.js
function CrosswalkZip(path) {

    this._adm = new AdmZip(path);

    // Derive root entry name from the filename
    var base = Path.basename(path, ".zip");
    this._root = base + "/";

    // Extract version
    var version = base.split("-")[1];
    var numbers = version.split(".");
    this._version = new Version(+numbers[0], +numbers[1], +numbers[2], +numbers[3]);
}
function CrosswalkZip(path) {

    this._adm = new AdmZip(path);

    // Derive root entry name from the filename
    var base = Path.basename(path, ".zip");
    this._root = base + "/";

    // Extract version
    var version = base.split("-")[1];
    var numbers = version.split(".");
    this._version = new Version(+numbers[0], +numbers[1], +numbers[2], +numbers[3]);
}
function CrosswalkZip ( path ) { this . _adm = new AdmZip ( path ) ; // Derive root entry name from the filename var base = Path . basename ( path , ".zip" ) ; this . _root = base + "/" ; // Extract version var version = base . split ( "-" ) [ 1 ] ; var numbers = version . split ( "." ) ; this . _version = new Version ( + numbers [ 0 ] , + numbers [ 1 ] , + numbers [ 2 ] , + numbers [ 3 ] ) ; }
Creates a CrosswalkZip object.
@param {String} path Path to downloaded release
@constructor
Creates a CrosswalkZip object .