Skip to content
Browse files

Fix errors : console.log and global variables.

  • Loading branch information...
1 parent 0447581 commit 9c70a3c9ee8a330cbdebfb37969a88120593d1c2 @dduponchel dduponchel committed
Showing with 1 addition and 3 deletions.
  1. +1 −1 jszip.js
  2. +0 −2 test/index.html
View
2 jszip.js
@@ -584,7 +584,7 @@ JSZip.prototype = (function ()
utf8decode : function (utftext) {
var string = "";
var i = 0;
- var c = c1 = c2 = 0;
+ var c = 0, c1 = 0, c2 = 0, c3 = 0;
while ( i < utftext.length ) {
View
2 test/index.html
@@ -738,7 +738,6 @@
// the data come from http://www.antarctica.ac.uk/met/READER/upper_air/
testZipFile("AntarcticaTemps.xlsx", "ref/complex_files/AntarcticaTemps.xlsx", function(file) {
var zip = new JSZip(file);
- console.log(zip);
// the zip file contains 16 entries, but we get 27 when creating all the sub-folders.
equal(zip.filter(function(){return true;}).length, 27, "the zip contains the good number of elements.");
ok(zip.file("[Content_Types].xml").data.indexOf("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml") !== -1, "the zip was correctly read.");
@@ -747,7 +746,6 @@
// same as above, but in the Open Document format
testZipFile("AntarcticaTemps.ods", "ref/complex_files/AntarcticaTemps.ods", function(file) {
var zip = new JSZip(file);
- console.log(zip);
// the zip file contains 19 entries, but we get 27 when creating all the sub-folders.
equal(zip.filter(function(){return true;}).length, 27, "the zip contains the good number of elements.");
ok(zip.file("META-INF/manifest.xml").data.indexOf("application/vnd.oasis.opendocument.spreadsheet") !== -1, "the zip was correctly read.");

0 comments on commit 9c70a3c

Please sign in to comment.
Something went wrong with that request. Please try again.