[refactor,demo][s]: refactor demo (and recline.js) to use new Dataset object.

This commit is contained in:
rgrp
2011-11-03 09:09:01 +00:00
parent c144dda731
commit 4d4c1708c2
3 changed files with 20 additions and 28 deletions

View File

@@ -147,9 +147,10 @@ var recline = function() {
showDialog('busy');
dataset.getTabularData().then(function ( tabularData ) {
util.hide('dialog');
app.headers = tabularData.headers;
app.headers = tabularData.get('headers');
// TODO: should this be callback like
app.rowCount = tabularData.getLength();
// TODO: delete?
util.render( 'actions', 'project-actions', $.extend({}, app.dbInfo, {url: app.csvUrl}) );
var offset = 0;
app.tabularData = tabularData;