From 79154acb1385eff8a8e33496764d6f92f12e6a58 Mon Sep 17 00:00:00 2001 From: AstroAndyN Date: Sat, 2 Apr 2016 19:30:01 +0100 Subject: [PATCH] Fix for complete(res, file) in parse(file, ...) Fix the "complete(res, file)" for parse(file, ...) so that "file" is not undefined in "complete". Works for the tested case, but it is not cler if this might cause problems with other "Streamed" reading modes. --- papaparse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papaparse.js b/papaparse.js index 15cad56..0db1dce 100644 --- a/papaparse.js +++ b/papaparse.js @@ -455,7 +455,7 @@ } if (finishedIncludingPreview && isFunction(this._config.complete) && (!results || !results.meta.aborted)) - this._config.complete(this._completeResults); + this._config.complete(this._completeResults, this._input); if (!finishedIncludingPreview && (!results || !results.meta.paused)) this._nextChunk();