17 Commits

Author SHA1 Message Date
Rufus Pollock
35b73aea52 [be/csv,bugfix][xs]: fix to breakage of csv loading for urls in 5d24fd474d6e6bd065039d058ef64c6db4454df9. 2013-06-30 14:16:22 +01:00
Rufus Pollock
b66f563368 [be/csv,bugfix][xs]: fix to breakage of csv loading from a file in 5d24fd474d6e6bd065039d058ef64c6db4454df9. 2013-06-22 20:14:20 +01:00
Rufus Pollock
5d24fd474d [csv,bugfix][s]: fix to csv backend to correct issue with header row appearing in data in case where fields passed explicitly.
* The bug was triggered by change in 4d128af797546e5174537d8ed530a243e444eeab to use model fields if explicitly provided
  * model.test.js illustrated issue (that new test was failing prior to changes to csv backend in this commit)
* Issue was that CSV backend did not pass back fields option. Previously, if no fields provided from backend we extracted fields from first row of the returned records. With change in 4d128af797546e5174537d8ed530a243e444eeab to use model fields if provided we had an issue as we no longer removed first row for fields.
* Fixed by having CSV backend explicitly extract fields and pass them back
2013-06-15 12:12:15 +01:00
Dan Wilson
f6a6a41c07 Rewrote Deferred selection code to not use "window".
This means it can be used in a web worker.
2013-05-17 18:27:50 +01:00
Dan Wilson
9aa2b95866 Expose the ability to skip initial rows in CSV parser. 2013-05-17 16:11:25 +01:00
Dan Wilson
b72dd0fb62 Enabled strict mode, and fixed issues raised. 2013-05-13 16:53:55 +01:00
Rufus Pollock
723d128d13 [#313,backend][s]: use jquery deferred if available - fixes #313. 2013-02-08 13:31:03 +00:00
Rufus Pollock
3e27edd9c4 [backend/csv][xs]: set my.__type__ to csv.` 2013-02-08 13:20:53 +00:00
Rufus Pollock
965bf6e9bb [#172,refactor][s]: switch everything to use underscore.deferred rather than jQuery.Deferred - fixes #172.
* In addition reduced pattern of passing in $ to backend modules - instead just use jQuery explicitly (this should make it easier to mock-out jQuery if you waned to
2013-01-04 20:13:16 +00:00
Rufus Pollock
dd8641ded2 [backend/csv,docs][s]: minor improvements to docs plus explicitly pass $/jQuery to module function (thanks to @acouch for the spot). 2012-10-19 07:41:11 +01:00
Rufus Pollock
9948c501cf [#190,backend/csv][s]: rename CSV options from delimiter to quotechar and separator to delimiter - fixes #190. 2012-09-09 15:20:37 +01:00
Rufus Pollock
6e49f53a63 [#185,backend/csv][s]: add support for dataset-style objects to serializeCSV method - fixes #185. 2012-09-09 15:11:54 +01:00
Mike Morris
f7e79e08fd fixing serializeCSV to pass test 2012-07-14 20:54:06 -04:00
Rufus Pollock
0500672f19 [be/csv,bugfix][xs]: fix bugs in last merge of backend csv stuff. 2012-07-15 01:38:47 +01:00
Mike Morris
11e1a17d6a adding serializeCSV function and test 2012-07-14 20:30:50 -04:00
Rufus Pollock
4e69026881 [be/csv,bugfix][xs]: csv loading from local online file was broken due to copy and paste error. 2012-07-08 16:42:44 +01:00
Rufus Pollock
340fedde0d [refactor][s]: get rid of backend subdirectory and instead have prefix backend when naming files. 2012-06-26 20:38:28 +01:00