rem: level = Math.max(0, Math.min(9, arguments[1])); 
add: level = Math.max(0, Math.min(9, level)); 
context:     this.add = function (f, level, pathPrefix) {        var f = evalFile(f);        // evaluate arguments        if (arguments.length == 2) {            if (typeof arguments[1] == "string") {                pathPrefix = arguments[1];                level = 9;            } else {                level = parseInt(arguments[1], 10);                pathPrefix = null;            }        } else if (level == null || isNaN(level)) {            level = 9;        }        // only levels between 0 and 9 are allowed        level = Math.max(0, Math.min(9, arguments[1]));        if (f.isDirectory()) {            // add a whole directory to the zip file (recursive!)            var files = (new helma.File(f.getAbsolutePath())).listRecursive();            for (var i in files) {                var fAdd = new java.io.File(files[i]);                if (!fAdd.isDirectory()) {                    var p = fAdd.getPath().substring(f.getAbsolutePath().length, fAdd.getParent().length);                    if (pathPrefix)                        p = pathPrefix + p;                    addFile(zOutStream, fAdd, level, p);                }            }        } else            addFile(zOutStream, f, level, pathPrefix);        return true;    };
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2504/c82daee623d67d0ea0b768f33031e1a98c0e53f2/Zip.js/clean/helma/Zip.js