sidebar tree uses Dan's forthcoming isEmpty() function

This commit is contained in:
David Norton 2006-05-16 19:38:42 +00:00
parent c51f612098
commit 85458659d0

View file

@ -43,7 +43,7 @@ Scholar.TreeView.prototype.getCellText = function(row, column)
Scholar.TreeView.prototype.isContainer = function(row) { return this._getObjectAtRow(row).isFolder(); }
Scholar.TreeView.prototype.isContainerOpen = function(row) { return this._dataObjects[row][1]; }
Scholar.TreeView.prototype.isContainerEmpty = function(row) { return false; }
Scholar.TreeView.prototype.isContainerEmpty = function(row) { return (this.isContainer(row) && this._getObjectAtRow(row).isEmpty()); }
Scholar.TreeView.prototype.getLevel = function(row) { return this._dataObjects[row][2]; }
Scholar.TreeView.prototype.getParentIndex = function(row)