www

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

commit 941ae5499c3fce34fad5981d76292bc5e73a616e
parent f2af77498ba3e312d92c3765365a4f1dff1f7901
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  7 Jul 2017 18:18:45 -0400

Use spread operator in flattenArguments

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -1430,9 +1430,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); continue; } if (Array.isArray(arg)) { - for (var j=0; j<arg.length; j++){ - returns.push(arg[j]); - } + returns.push(...arg); } else { returns.push(arg);