summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 12:25:28 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 12:25:28 -0500
commit6f530304693534bfac41dfbe77cbbd9c79387617 (patch)
tree88dc73babeb09e165883b7e460d56953f12c6c20 /ext/mixed/js/display.js
parentfd17a0fccd54229bf071899be96dbdab3cd12f02 (diff)
Use for of loop instead of forEach
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js4
1 files changed, 2 insertions, 2 deletions
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) {