diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-10 12:25:28 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-10 12:25:28 -0500 |
commit | 6f530304693534bfac41dfbe77cbbd9c79387617 (patch) | |
tree | 88dc73babeb09e165883b7e460d56953f12c6c20 /ext/mixed/js | |
parent | fd17a0fccd54229bf071899be96dbdab3cd12f02 (diff) |
Use for of loop instead of forEach
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
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) { |