Fix error when trying to delete all items in Library (thanks Dan C.)
This commit is contained in:
parent
46368e98dd
commit
97b2abf2f9
1 changed files with 8 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue