From 168ab9ca980b1cf8c07b10ff51ed13be4acc8f2f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 May 2009 21:31:47 +0000 Subject: [PATCH] Speed up initial opening of Zotero pane with many collections -- this can be much faster, but not for Beta 4 --- chrome/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 index 17dcb5e605..14ed29d798 100644 --- 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; } }