mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Add id and libraryID getters for all data objects
This commit is contained in:
parent
4657c46d4b
commit
56f244a4bb
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue