From c590aa0eb41b9c62dea327969636a5b953ec23a4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 7 Jul 2015 14:40:14 -0400 Subject: [PATCH] Fix documentation for Zotero.DataObjects.getAsync() --- chrome/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 index c4fcc2089b..3907bedfed 100644 --- 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} - 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 = [];