Remove use of non-standard list comprehension syntax
This commit is contained in:
parent
03b1b75bfb
commit
39bc5398c9
4 changed files with 15 additions and 7 deletions
|
@ -231,10 +231,10 @@ ZoteroAutoComplete.prototype.startSearch = Zotero.Promise.coroutine(function* (s
|
|||
if (resultsCallback) {
|
||||
resultsCallback(results);
|
||||
this.updateResults(
|
||||
[for (x of results) x.val],
|
||||
[for (x of results) x.comment],
|
||||
Object.values(results).map(x => x.val),
|
||||
Object.values(results).map(x => x.comment),
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
resultCode = null;
|
||||
Zotero.debug("Autocomplete query completed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue