Skip to content

Commit

Permalink
FileParser fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-kas committed May 9, 2013
1 parent b209142 commit cb35a04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/FileParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ FileParser.prototype.parseFiles = function(rawFiles, callback) {
var self = this;
var goal = rawFiles.length;

// call setupReader for all files
for(var i = 0, len = rawFiles.length; i < len; i++) {
setupReader(rawFiles[i], i, len);
}

var setupReader = function(rawFile, j, length) {
var reader = new FileReader();
reader.readAsArrayBuffer(rawFile);
Expand Down Expand Up @@ -101,4 +96,9 @@ FileParser.prototype.parseFiles = function(rawFiles, callback) {
}
};
};

// call setupReader for all files
for(var i = 0, len = rawFiles.length; i < len; i++) {
setupReader(rawFiles[i], i, len);
}
};

0 comments on commit cb35a04

Please sign in to comment.