commit 2e76fd65848d2eb6fa2d7a8f9899044154d96e90 parent 7ba54886a6d8d85d7abf60ca0fc63338d3a510ae Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 19 Jun 2015 03:50:09 -0400 Add Zotero.DataObjectUtilities.getTypes() Diffstat:
| M | chrome/content/zotero/xpcom/data/dataObjectUtilities.js | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/dataObjectUtilities.js b/chrome/content/zotero/xpcom/data/dataObjectUtilities.js @@ -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");