commit ab4320df07b9522c46ea36b8881bfe52eaeb8052 parent e0ea3ca99bed1d81c545ad571ecaa840a64e7ef3 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 19 May 2015 01:20:12 -0400 Add Zotero.Libraries.getAll() Diffstat:
| M | chrome/content/zotero/xpcom/data/libraries.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js @@ -70,6 +70,11 @@ Zotero.Libraries = new function () { } + this.getAll = function () { + return [for (x of Object.keys(_libraryData)) parseInt(x)] + } + + this.add = Zotero.Promise.coroutine(function* (libraryID, type) { switch (type) { case 'group':