From fcbed1a5315db4359135656d2dbfac6b9e4ff7d5 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Tue, 10 May 2011 16:29:30 -0600 Subject: [PATCH] Minor API changes --- OnDemandList.js | 4 ++-- Table.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OnDemandList.js b/OnDemandList.js index 3f4b40381..9d5917ab7 100644 --- a/OnDemandList.js +++ b/OnDemandList.js @@ -59,10 +59,10 @@ return declare([List], { return preloadNode; }, sortOrder: null, - sort: function(attribute, descending){ + sort: function(property, descending){ // summary: // Sort the content - this.sortOrder = [{attribute: attribute, descending: descending}]; + this.sortOrder = [{attribute: property, descending: descending}]; this.refreshContent(); }, refreshContent: function(){ diff --git a/Table.js b/Table.js index 39e13eebd..f4eb6389f 100644 --- a/Table.js +++ b/Table.js @@ -104,7 +104,7 @@ define(["dojo/_base/html", "dojo/_base/declare", "dojo/listen", "./TextEdit", ". }); }, _styleSheets: {}, - setColumnWidth: function(colId, width){ + styleColumn: function(colId, css){ // summary: // Changes the column width by creating a dynamic stylesheet @@ -116,7 +116,7 @@ define(["dojo/_base/html", "dojo/_base/declare", "dojo/listen", "./TextEdit", ". // now create a stylesheet to style the column this._styleSheets[colId] = cssx.createStyleNode( "#" + this.domNode.id + ' th.column-' + colId + ', #' + this.domNode.id + ' td.column-' + colId + '{' + - "width: " + width + 'px;' + + css + "}"); } });