From 6f530304693534bfac41dfbe77cbbd9c79387617 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 10 Nov 2019 12:25:28 -0500 Subject: Use for of loop instead of forEach --- ext/mixed/js/display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 6d992897..df887fb0 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -279,9 +279,9 @@ class Display { } addEventListeners(selector, type, listener, options) { - this.container.querySelectorAll(selector).forEach((node) => { + for (const node of this.container.querySelectorAll(selector)) { Display.addEventListener(this.eventListeners, node, type, listener, options); - }); + } } setContent(type, details) { -- cgit v1.2.3