Browse Source

Error callback processed consistent with other config properties

pull/93/head
Matthew Holt 11 years ago
parent
commit
7b3f5973ea
  1. 4
      papaparse.js

4
papaparse.js

@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
worker: false,
comments: false,
complete: undefined,
error: undefined,
download: false,
chunk: undefined,
keepEmptyRows: false
@ -1281,6 +1282,9 @@ @@ -1281,6 +1282,9 @@
if (typeof config.complete !== 'function')
config.complete = DEFAULTS.complete;
if (typeof config.error !== 'function')
config.error = DEFAULTS.error;
if (typeof config.encoding !== 'string')
config.encoding = DEFAULTS.encoding;

Loading…
Cancel
Save