mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added .source to iteration options
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cf510bf6b3
commit
9c6f39ea9f
@ -1539,6 +1539,7 @@ var BaseBrowserPrototype = {
|
||||
context.index = context.index || 0
|
||||
|
||||
// options specifics...
|
||||
var source = options.source || 'items'
|
||||
var iterateNonIterable = options.iterateAll || options.iterateNonIterable
|
||||
var iterateCollapsed = options.iterateAll || options.iterateCollapsed
|
||||
var skipNested = !options.iterateAll && options.skipNested
|
||||
@ -1710,10 +1711,10 @@ var BaseBrowserPrototype = {
|
||||
[],
|
||||
// input items...
|
||||
...(reverse ?
|
||||
this.items
|
||||
this[source]
|
||||
.slice()
|
||||
.reverse()
|
||||
: this.items)) },
|
||||
: this[source])) },
|
||||
|
||||
|
||||
// Test/Example Text renders...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user