minor stuff...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-02-28 20:13:01 +03:00
parent b99a152175
commit 1edd5decc4

View File

@ -264,6 +264,28 @@ var BaseBrowserPrototype = {
// carefully + strictly document the result...
item_index: null,
// XXX what should these return??? (item, id, ...)
__focused: undefined,
get focused(){
return this.__focused
|| (this.__focused = this
// XXX should we simple bailout when we find an item???
.filter(function(e){
return e.focused })[0]) },
set focused(value){
// XXX
},
__selected: null,
get selected(){
return this.__selected
|| (this.__selected = this
.filter(function(e){
return e.selected })) },
set selected(value){
// XXX
},
// Item list constructor...
//