mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +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
|
options = opts
|
||||||
|
|
||||||
/*
|
var lst = list instanceof Function ?
|
||||||
if(id in dialog.__list && id in dialog.__editable){
|
list()
|
||||||
var lst = dialog.__list[id]
|
: list
|
||||||
var editable = dialog.__editable[id]
|
var editable = dialog.__editable[id] = lst instanceof Array
|
||||||
|
// keep editable state...
|
||||||
|
&& dialog.__editable[id]
|
||||||
|
|
||||||
} else {
|
// view objects...
|
||||||
//*/
|
// NOTE: we .slice() here to make the changes a bit better packaged
|
||||||
var lst = list instanceof Function ?
|
// or discrete and not done as they come in...
|
||||||
list()
|
lst = lst instanceof Array ? lst.slice() : Object.keys(lst)
|
||||||
: list
|
|
||||||
var editable = dialog.__editable[id] = lst instanceof Array && 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
|
dialog.__list[id] = lst
|
||||||
//}
|
|
||||||
|
|
||||||
var buttons = options.buttons = (options.buttons || []).slice()
|
var buttons = options.buttons = (options.buttons || []).slice()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user