diegopenhanut / jquery-csv

Automatically exported from code.google.com/p/jquery-csv
MIT License
0 stars 0 forks source link

$.csv.toObjects return garbage value #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $.csv.toObjects(dataToBeParsed) 

What is the expected output? What do you see instead?
expected: [{one: 1, two: 2}, {the: 34, fjd: 4343}]
what i get: [{one: 1, two: 2, function(){}, function(){}, function()......, 
function(){}.......}, {the: 34, fjd: 4343, function(){}, function(){}, 
function()......, function(){}.......}]

What version of the product are you using? On what operating system?
7.1

Please provide any additional information below.
Fix: Line number 750 -> Dont user 'for (var j in header)' --> Use 'for(var j=0; 
j <headers.length; j++) '

Original issue reported on code.google.com by itsi...@gmail.com on 17 Apr 2014 at 4:22

GoogleCodeExporter commented 9 years ago
Line number - 799 not 750

Original comment by itsi...@gmail.com on 17 Apr 2014 at 4:28

GoogleCodeExporter commented 9 years ago
fix merged into my repo: 
https://github.com/mirlord/jquery-csv/commit/78724d620cc5e4d151142a7954535d27758
396e8

Original comment by JaGoTerr on 8 May 2014 at 12:50

GoogleCodeExporter commented 9 years ago
Fix is also merged into the new upstream repository at:
https://github.com/evanplaice/jquery-csv/commits/master 

Original comment by evanpla...@gmail.com on 29 May 2014 at 3:22