diff options
-rw-r--r-- | ui.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui.js b/ui.js index b055990..41fcf74 100644 --- a/ui.js +++ b/ui.js @@ -834,11 +834,8 @@ class GrouplikeListingElement extends Form { } if (this.grouplike.items.length) { - const itemElements = this.grouplike.items.map(item => { - return new InteractiveGrouplikeItemElement(item, this.recordStore) - }) - - for (const itemElement of itemElements) { + for (const item of this.grouplike.items) { + const itemElement = new InteractiveGrouplikeItemElement(item, this.recordStore) for (const evtName of ['download', 'remove', 'mark', 'paste', 'browse', 'queue', 'unqueue', 'menu']) { itemElement.on(evtName, (...data) => this.emit(evtName, itemElement.item, ...data)) } |