www

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

commit ed3b18ba8c62ef22e71c5c724e1d7287a812b933
parent b7aab8b8d24a331f56588936db75de2f7bbcd85d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 13 Apr 2017 01:21:36 -0400

NodeList doesn't have forEach in Firefox 45

Diffstat:
Mchrome/content/zotero/zoteroPane.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1599,7 +1599,8 @@ var ZoteroPane = new function() */ this.updateItemPaneButtons = function (selectedItems) { if (!selectedItems.length) { - document.querySelectorAll('.zotero-item-pane-top-buttons').forEach(x => x.hidden = true); + // TODO: Remove Array.from after Firefox 45 support is removed + Array.from(document.querySelectorAll('.zotero-item-pane-top-buttons')).forEach(x => x.hidden = true); return; }