Fix error when trying to delete all items in Library (thanks Dan C.)

This commit is contained in:
Dan Stillman 2006-08-29 01:00:43 +00:00
parent 46368e98dd
commit 97b2abf2f9

View file

@ -782,6 +782,14 @@ Scholar.ItemTreeView.TreeRow.prototype.getType = function()
return this.ref.getType();
}
Scholar.ItemTreeView.TreeRow.prototype.numChildren = function()
{
if(this.isRegularItem())
return this.ref.numChildren();
else
return 0;
}
Scholar.ItemTreeView.TreeRow.prototype.numNotes = function()
{
if(this.isRegularItem())