Browse Source

Made config object actually optional now

pull/33/head 2.0.1
Matthew Holt 11 years ago
parent
commit
26e01f8054
  1. 8
      jquery.parse.js
  2. 4
      jquery.parse.min.js
  3. 2
      parse.jquery.json

8
jquery.parse.js

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/*
Papa Parse
v2.0.0
v2.0.1
https://github.com/mholt/jquery.parse
*/
@ -112,9 +112,6 @@ @@ -112,9 +112,6 @@
$.parse = function(input, options)
{
if (!options)
options = {};
var parser = new Parser(options);
return parser.parse(input);
};
@ -286,6 +283,9 @@ @@ -286,6 +283,9 @@
function validConfig(config)
{
if (typeof config !== 'object')
config = {};
if (typeof config.delimiter !== 'string'
|| config.delimiter.length != 1)
config.delimiter = _defaultConfig.delimiter;

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

Loading…
Cancel
Save