mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Add Zotero.DataObjectUtilities.getTypes()
This commit is contained in:
parent
7ba54886a6
commit
2e76fd6584
1 changed files with 9 additions and 0 deletions
|
|
@ -25,6 +25,15 @@
|
|||
|
||||
|
||||
Zotero.DataObjectUtilities = {
|
||||
/**
|
||||
* Get an array of all DataObject types
|
||||
*
|
||||
* @return {String[]}
|
||||
*/
|
||||
getTypes: function () {
|
||||
return ['collection', 'search', 'item'];
|
||||
},
|
||||
|
||||
"checkLibraryID": function (libraryID) {
|
||||
if (!libraryID) {
|
||||
throw new Error("libraryID not provided");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue