www

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

commit bb760707d4daa0525f11b9f277ef11ff35624367
parent c18f31aeab03146b590fc332a020e80e9b7325ac
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  5 May 2015 02:56:56 -0400

Get id values directly in Zotero.DataObject.prototype.loadPrimaryData

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

diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js @@ -335,9 +335,9 @@ Zotero.DataObject.prototype._getLinkedObject = Zotero.Promise.coroutine(function Zotero.DataObject.prototype.loadPrimaryData = Zotero.Promise.coroutine(function* (reload, failOnMissing) { if (this._loaded.primaryData && !reload) return; - var id = this.id; - var key = this.key; - var libraryID = this.libraryID; + var id = this._id; + var key = this._key; + var libraryID = this._libraryID; if (!id && !key) { throw new Error('ID or key not set in Zotero.' + this._ObjectType + '.loadPrimaryData()');