mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
Add 'data' member support to getData()
This commit is contained in:
parent
ec87d11c31
commit
cb8d331415
1 changed files with 2 additions and 1 deletions
|
@ -163,5 +163,6 @@ HorizontalMenuView.prototype.onKeyPress = function(ch, key) {
|
|||
};
|
||||
|
||||
HorizontalMenuView.prototype.getData = function() {
|
||||
return this.focusedItemIndex;
|
||||
const item = this.getItem(this.focusedItemIndex);
|
||||
return _.isString(item.data) ? item.data : this.focusedItemIndex;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue