Skip to content

Commit

Permalink
Minor API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed May 10, 2011
1 parent 7f83995 commit fcbed1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OnDemandList.js
Expand Up @@ -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(){
Expand Down
4 changes: 2 additions & 2 deletions Table.js
Expand Up @@ -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

Expand All @@ -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 +
"}");
}
});
Expand Down

0 comments on commit fcbed1a

Please sign in to comment.