commit 97b2abf2f96c555bae1ba4ae27fe4aeca388fa46 parent 46368e98ddeefd5524d38a84ffcf7588e98ae233 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 29 Aug 2006 01:00:43 +0000 Fix error when trying to delete all items in Library (thanks Dan C.) Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js b/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js @@ -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())