mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d4477ff01c
commit
cbb792431f
@ -147,14 +147,14 @@ Items.group = function(...items){
|
||||
|
||||
// Place list in a sub-list of item...
|
||||
//
|
||||
// XXX options???
|
||||
// ...this may leak options.children to the outside...
|
||||
Items.nest = function(item, list, options){
|
||||
options = options || {}
|
||||
//options = Object.assign(Object.create(this.options || {}), options || {})
|
||||
options.children = list instanceof Array ?
|
||||
collectItems(this, list)
|
||||
: list
|
||||
options = Object.assign({},
|
||||
{ children: list instanceof Array ?
|
||||
collectItems(this, list)
|
||||
: list },
|
||||
options)
|
||||
return this(item, options)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user