diff --git a/papaparse.js b/papaparse.js index 8676056..9d1fcc6 100755 --- a/papaparse.js +++ b/papaparse.js @@ -898,13 +898,11 @@ if (!Array.isArray) this._onCsvData = function(results) { var data = results.data; - for (var i = 0; i < data.length; i++) { - if (!stream.push(data[i]) && !this._handle.paused()) { - // the writeable consumer buffer has filled up - // so we need to pause until more items - // can be processed - this._handle.pause(); - } + if (!stream.push(data) && !this._handle.paused()) { + // the writeable consumer buffer has filled up + // so we need to pause until more items + // can be processed + this._handle.pause(); } };