From dd52206b37cdf098c2393580f3fd4e7f5b54807b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 24 May 2015 19:59:33 -0400 Subject: [PATCH] Don't show "Loading item data" when data is cached --- chrome/content/zotero/xpcom/data/item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 22df84b99..1fcc4a798 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4284,12 +4284,12 @@ Zotero.Item.prototype.toResponseJSON = Zotero.Promise.coroutine(function* (optio * Load in the field data from the database */ Zotero.Item.prototype.loadItemData = Zotero.Promise.coroutine(function* (reload) { - Zotero.debug("Loading item data for item " + this.libraryKey); - if (this._loaded.itemData && !reload) { return; } + Zotero.debug("Loading item data for item " + this.libraryKey); + if (!this.id) { throw ('ItemID not set for object before attempting to load data'); }