mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30: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...
|
// Place list in a sub-list of item...
|
||||||
//
|
//
|
||||||
// XXX options???
|
|
||||||
// ...this may leak options.children to the outside...
|
|
||||||
Items.nest = function(item, list, options){
|
Items.nest = function(item, list, options){
|
||||||
options = options || {}
|
options = options || {}
|
||||||
//options = Object.assign(Object.create(this.options || {}), options || {})
|
//options = Object.assign(Object.create(this.options || {}), options || {})
|
||||||
options.children = list instanceof Array ?
|
options = Object.assign({},
|
||||||
|
{ children: list instanceof Array ?
|
||||||
collectItems(this, list)
|
collectItems(this, list)
|
||||||
: list
|
: list },
|
||||||
|
options)
|
||||||
return this(item, options)
|
return this(item, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user