Add Zotero.DataObjectUtilities.getTypes()

This commit is contained in:
Dan Stillman 2015-06-19 03:50:09 -04:00
parent 7ba54886a6
commit 2e76fd6584

View file

@ -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");