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 = {
|
Zotero.DataObjectUtilities = {
|
||||||
|
/**
|
||||||
|
* Get an array of all DataObject types
|
||||||
|
*
|
||||||
|
* @return {String[]}
|
||||||
|
*/
|
||||||
|
getTypes: function () {
|
||||||
|
return ['collection', 'search', 'item'];
|
||||||
|
},
|
||||||
|
|
||||||
"checkLibraryID": function (libraryID) {
|
"checkLibraryID": function (libraryID) {
|
||||||
if (!libraryID) {
|
if (!libraryID) {
|
||||||
throw new Error("libraryID not provided");
|
throw new Error("libraryID not provided");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue