Skip to content

Commit 2180592

Browse files
author
Graham Butler
committed
remove for of loop
1 parent 59f025c commit 2180592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ class AuthorSelectElement extends AuthorBaseElement(HTMLElement) {
385385

386386
if (select.children.length > 0) {
387387
if (!this.multiple) {
388-
for (let option of select.children) {
388+
[...select.children].forEach(option => {
389389
if (option.index !== select.selectedIndex) {
390390
option.removeAttribute('selected')
391391
}
392-
}
392+
})
393393
}
394394

395395
this.optionsElement.addOptions(select.children)

0 commit comments

Comments
 (0)