mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 08:41:40 +00:00
adding .options.renderUnique...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
75548691d5
commit
b77f678805
@ -1181,6 +1181,10 @@ var BaseBrowserPrototype = {
|
|||||||
// If true item keys must be unique...
|
// If true item keys must be unique...
|
||||||
uniqueKeys: false,
|
uniqueKeys: false,
|
||||||
|
|
||||||
|
// if true do not render an item more than once...
|
||||||
|
renderUnique: false,
|
||||||
|
|
||||||
|
|
||||||
// Controls how the disabled sub-tree root elements are skipped...
|
// Controls how the disabled sub-tree root elements are skipped...
|
||||||
//
|
//
|
||||||
// Can be:
|
// Can be:
|
||||||
@ -3114,6 +3118,10 @@ var BaseBrowserPrototype = {
|
|||||||
section[0]
|
section[0]
|
||||||
: section
|
: section
|
||||||
|
|
||||||
|
var seen = options.renderUnique ?
|
||||||
|
(context.seen = context.seen || new Set())
|
||||||
|
: false
|
||||||
|
|
||||||
// build range bounds...
|
// build range bounds...
|
||||||
// use .get(..) on full (non-partial) range...
|
// use .get(..) on full (non-partial) range...
|
||||||
var get_options = Object.assign(
|
var get_options = Object.assign(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user