mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
Add getCount() and getItems9)
This commit is contained in:
parent
9ce2991216
commit
36c995018d
1 changed files with 10 additions and 0 deletions
|
@ -68,6 +68,16 @@ MenuView.prototype.setItems = function(items) {
|
|||
}
|
||||
};
|
||||
|
||||
MenuView.prototype.getCount = function() {
|
||||
return this.items.length;
|
||||
};
|
||||
|
||||
MenuView.prototype.getItems = function() {
|
||||
return _.map(this.items, function itemIter(i) {
|
||||
return i.text;
|
||||
});
|
||||
};
|
||||
|
||||
MenuView.prototype.getItem = function(index) {
|
||||
return this.items[index].text;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue