« get me outta code hell

Fix "this group" listing item causing a crash - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-12-21 17:53:25 -0400
committerFlorrie <towerofnix@gmail.com>2018-12-21 17:53:25 -0400
commit919a549cb627611c6d19ab8bc4e95c5a3d2e2b60 (patch)
tree5d8cb447f572ba4c6456ad38eebfbc26a9b0025d
parent4238f9b72c46ac45fb5481921844641927524a14 (diff)
Fix "this group" listing item causing a crash
Somebody remind me to write unit tests...
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 3a7f70d..fb1ec02 100644
--- a/ui.js
+++ b/ui.js
@@ -973,7 +973,7 @@ class GrouplikeListingElement extends Form {
         ownElement.recordStore = this.recordStore
         ownElement.isGroup = true
         ownElement.on('pressed', () => {
-          InteractiveGrouplikeItemElement.prototype.showMenu.call(ownElement)
+          ownElement.emit('menu', ownElement)
         })
         this.addEventListeners(ownElement)
         form.addInput(ownElement)