mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
186a45140a
commit
a145667637
@ -712,24 +712,19 @@ function(list, options){
|
||||
}
|
||||
options = opts
|
||||
|
||||
/*
|
||||
if(id in dialog.__list && id in dialog.__editable){
|
||||
var lst = dialog.__list[id]
|
||||
var editable = dialog.__editable[id]
|
||||
|
||||
} else {
|
||||
//*/
|
||||
var lst = list instanceof Function ?
|
||||
list()
|
||||
: list
|
||||
var editable = dialog.__editable[id] = lst instanceof Array && dialog.__editable[id]
|
||||
var editable = dialog.__editable[id] = lst instanceof Array
|
||||
// keep editable state...
|
||||
&& dialog.__editable[id]
|
||||
|
||||
// view objects...
|
||||
// NOTE: we .slice() here to make the changes a bit better packaged
|
||||
// or discrete and not done as they come in...
|
||||
lst = lst instanceof Array ? lst.slice() : Object.keys(lst)
|
||||
|
||||
dialog.__list[id] = lst
|
||||
//}
|
||||
|
||||
var buttons = options.buttons = (options.buttons || []).slice()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user