www

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

commit 56f244a4bb96d4d9a31b642755d494d8ce4a60a7
parent 4657c46d4b46d8224bd9837734a7bce993539dd1
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Fri, 14 Nov 2014 02:38:31 -0600

Add id and libraryID getters for all data objects

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

diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js @@ -58,6 +58,12 @@ Zotero.DataObject.prototype._dataTypes = []; Zotero.defineProperty(Zotero.DataObject.prototype, 'objectType', { get: function() this._objectType }); +Zotero.defineProperty(Zotero.DataObject.prototype, 'id', { + get: function() this._id +}); +Zotero.defineProperty(Zotero.DataObject.prototype, 'libraryID', { + get: function() this._libraryID +}); Zotero.defineProperty(Zotero.DataObject.prototype, 'libraryKey', { get: function() this._libraryID + "/" + this._key });