Fix documentation for Zotero.DataObjects.getAsync()
This commit is contained in:
parent
99dd1c0697
commit
c590aa0eb4
1 changed files with 2 additions and 2 deletions
|
@ -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 {Array|Integer} ids An individual object id or an array of object ids
|
||||||
* @param {Object} [options]
|
* @param {Object} [options]
|
||||||
* @param {Boolean} [options.noCache=false] - Don't add object to cache after loading
|
* @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;
|
* @return {Promise<Zotero.DataObject|Zotero.DataObject[]>} - A promise for either a data object,
|
||||||
* otherwise, an array of data objects
|
* 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) {
|
Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids, options) {
|
||||||
var toLoad = [];
|
var toLoad = [];
|
||||||
|
|
Loading…
Reference in a new issue