mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added .options.renderUnique...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b77f678805
commit
236f748eda
@ -1182,7 +1182,7 @@ var BaseBrowserPrototype = {
|
|||||||
uniqueKeys: false,
|
uniqueKeys: false,
|
||||||
|
|
||||||
// if true do not render an item more than once...
|
// if true do not render an item more than once...
|
||||||
renderUnique: false,
|
renderUnique: true,
|
||||||
|
|
||||||
|
|
||||||
// Controls how the disabled sub-tree root elements are skipped...
|
// Controls how the disabled sub-tree root elements are skipped...
|
||||||
@ -3220,6 +3220,12 @@ var BaseBrowserPrototype = {
|
|||||||
// only sub-path...
|
// only sub-path...
|
||||||
&& path.cmp(from_path.slice(0, path.length))) ?
|
&& path.cmp(from_path.slice(0, path.length))) ?
|
||||||
[ renderer.renderNestedBlank(nested(), i, context) ]
|
[ renderer.renderNestedBlank(nested(), i, context) ]
|
||||||
|
// seen...
|
||||||
|
: seen instanceof Set
|
||||||
|
&& (seen.has(elem)
|
||||||
|
// add to seen and move to next test...
|
||||||
|
|| !seen.add(elem)) ?
|
||||||
|
[]
|
||||||
// filter -> skip unmatching...
|
// filter -> skip unmatching...
|
||||||
: (filter && !filter.call(this, elem, i, path, section)) ?
|
: (filter && !filter.call(this, elem, i, path, section)) ?
|
||||||
[]
|
[]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user