www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 168ab9ca980b1cf8c07b10ff51ed13be4acc8f2f
parent 975aafa9c166fb39b930833f3c04802f0d245f8c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 19 May 2009 21:31:47 +0000

Speed up initial opening of Zotero pane with many collections -- this can be much faster, but not for Beta 4


Diffstat:
Mchrome/content/zotero/xpcom/data/collection.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js @@ -1267,8 +1267,9 @@ Zotero.Collection.prototype._loadChildItems = function() { this._childItems = []; if (ids) { - for each(var id in ids) { - this._childItems.push(Zotero.Items.get(id)); + var items = Zotero.Items.get(ids) + if (items) { + this._childItems = items; } }