mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
setFocusItemIndex() support
This commit is contained in:
parent
a2011ef39c
commit
d2c8bd90f0
3 changed files with 16 additions and 1 deletions
|
@ -89,6 +89,7 @@ function TextView(options) {
|
|||
return this.position.col + offset;
|
||||
};
|
||||
|
||||
// :TODO: Whatever needs init here should be done separately from setText() since it redraws/etc.
|
||||
this.setText(options.text || '');
|
||||
}
|
||||
|
||||
|
@ -97,7 +98,9 @@ util.inherits(TextView, View);
|
|||
TextView.prototype.redraw = function() {
|
||||
TextView.super_.prototype.redraw.call(this);
|
||||
|
||||
this.drawText(this.text);
|
||||
if(_.isString(this.text)) {
|
||||
this.drawText(this.text);
|
||||
}
|
||||
};
|
||||
|
||||
TextView.prototype.setFocus = function(focused) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue