mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
277a21d1e5
commit
0641dad600
@ -2821,6 +2821,7 @@ var BaseBrowserPrototype = {
|
|||||||
// first result only.
|
// first result only.
|
||||||
//
|
//
|
||||||
// XXX should we be able to get offset values relative to any match?
|
// XXX should we be able to get offset values relative to any match?
|
||||||
|
// XXX BUG: when pattern is a path this returns a view rather than the item....
|
||||||
get: function(pattern, options){
|
get: function(pattern, options){
|
||||||
var args = [...arguments]
|
var args = [...arguments]
|
||||||
pattern = args.shift()
|
pattern = args.shift()
|
||||||
@ -2852,9 +2853,8 @@ var BaseBrowserPrototype = {
|
|||||||
.reduce(function(r, e){
|
.reduce(function(r, e){
|
||||||
return r || typeof(e) != typeof('str') }, false)))
|
return r || typeof(e) != typeof('str') }, false)))
|
||||||
&& !('iterateCollapsed' in options)){
|
&& !('iterateCollapsed' in options)){
|
||||||
options = Object.assign(
|
options.iterateCollapsed = true
|
||||||
Object.create(options),
|
}
|
||||||
{iterateCollapsed: true}) }
|
|
||||||
|
|
||||||
// sanity checks...
|
// sanity checks...
|
||||||
if(offset <= 0){
|
if(offset <= 0){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user