Browse Source

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.
pull/301/head
AstroAndyN 9 years ago
parent
commit
79154acb13
  1. 2
      papaparse.js

2
papaparse.js

@ -455,7 +455,7 @@
} }
if (finishedIncludingPreview && isFunction(this._config.complete) && (!results || !results.meta.aborted)) 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)) if (!finishedIncludingPreview && (!results || !results.meta.paused))
this._nextChunk(); this._nextChunk();

Loading…
Cancel
Save