www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c590aa0eb41b9c62dea327969636a5b953ec23a4
parent 99dd1c069776b3f94e7e8ed109a91b1f551153ff
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  7 Jul 2015 14:40:14 -0400

Fix documentation for Zotero.DataObjects.getAsync()

Diffstat:
Mchrome/content/zotero/xpcom/data/dataObjects.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js @@ -129,8 +129,8 @@ Zotero.DataObjects.prototype.get = function (ids) { * @param {Array|Integer} ids An individual object id or an array of object ids * @param {Object} [options] * @param {Boolean} [options.noCache=false] - Don't add object to cache after loading - * @return {Zotero.DataObject|Zotero.DataObject[]} - A data object, if a scalar id was passed; - * otherwise, an array of data objects + * @return {Promise<Zotero.DataObject|Zotero.DataObject[]>} - A promise for either a data object, + * if a scalar id was passed, or an array of data objects, if an array of ids was passed */ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids, options) { var toLoad = [];