[#128,backend/csv][s]: rename localcsv to csv and make into a module recline.Backend.CSv.

This commit is contained in:
Rufus Pollock
2012-05-26 19:00:39 +01:00
parent 72ed877ae2
commit ed4f315a97
3 changed files with 16 additions and 9 deletions

View File

@@ -1,8 +1,15 @@
this.recline = this.recline || {};
this.recline.Backend = this.recline.Backend || {};
this.recline.Backend.CSV = this.recline.Backend.CSV || {};
(function($, my) {
my.loadFromCSVFile = function(file, callback, options) {
(function(my) {
// ## load
//
// Load data from a CSV file referenced in an HTMl5 file object returning the
// dataset in the callback
//
// @param options as for parseCSV below
my.load = function(file, callback, options) {
var encoding = options.encoding || 'UTF-8';
var metadata = {
@@ -168,4 +175,4 @@ this.recline.Backend = this.recline.Backend || {};
}
}(jQuery, this.recline.Backend));
}(this.recline.Backend.CSV));