Browse Source

Did away with file type checking; fixes #18 and #22

pull/33/head 2.0.2
Matthew Holt 11 years ago
parent
commit
85f59bbec0
  1. 8
      jquery.parse.js
  2. 4
      jquery.parse.min.js
  3. 2
      parse.jquery.json

8
jquery.parse.js

@ -1,6 +1,6 @@
/* /*
Papa Parse Papa Parse
v2.0.1 v2.0.2
https://github.com/mholt/jquery.parse https://github.com/mholt/jquery.parse
*/ */
@ -53,12 +53,6 @@
if (isFunction(options.complete)) if (isFunction(options.complete))
completeFunc = function(results, file, inputElem, event) { options.complete(results, file, inputElem, event); complete(); }; completeFunc = function(results, file, inputElem, event) { options.complete(results, file, inputElem, event); complete(); };
if (f.file.type.indexOf("text") < 0)
{
error("TypeMismatchError", f.file, f.inputElem);
return complete();
}
if (isFunction(options.before)) if (isFunction(options.before))
{ {
var returned = options.before(f.file, f.inputElem); var returned = options.before(f.file, f.inputElem);

4
jquery.parse.min.js vendored

File diff suppressed because one or more lines are too long

2
parse.jquery.json

@ -1,6 +1,6 @@
{ {
"name": "parse", "name": "parse",
"version": "2.0.1", "version": "2.0.2",
"title": "Papa Parse", "title": "Papa Parse",
"description": "Papa is a powerful CSV (delimited text) parser that gracefully handles large files and malformed input.", "description": "Papa is a powerful CSV (delimited text) parser that gracefully handles large files and malformed input.",
"keywords": [ "keywords": [

Loading…
Cancel
Save