Use for of loop instead of forEach

This commit is contained in:
toasted-nutbread 2019-11-10 12:25:28 -05:00
parent fd17a0fccd
commit 6f53030469

View File

@ -279,9 +279,9 @@ class Display {
} }
addEventListeners(selector, type, listener, options) { 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); Display.addEventListener(this.eventListeners, node, type, listener, options);
}); }
} }
setContent(type, details) { setContent(type, details) {