mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor tweaks, still reevaluating .search(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a80f3ad69a
commit
0e21955601
@ -943,7 +943,7 @@ var BaseBrowserPrototype = {
|
|||||||
return path.length > 0
|
return path.length > 0
|
||||||
&& pattern.length == path.length
|
&& pattern.length == path.length
|
||||||
&& !pattern.reduce(function(res, e, i){
|
&& !pattern.reduce(function(res, e, i){
|
||||||
return res || (e != '*' && e != path[i]) }, false) }
|
return res || !(e == '*' || e == path[i]) }, false) }
|
||||||
// index...
|
// index...
|
||||||
: function(elem, i, path){
|
: function(elem, i, path){
|
||||||
return elem
|
return elem
|
||||||
@ -953,7 +953,8 @@ var BaseBrowserPrototype = {
|
|||||||
return this.walk(
|
return this.walk(
|
||||||
function(i, path, elem, doNested){
|
function(i, path, elem, doNested){
|
||||||
if(elem && func.call(this, elem, i, path)){
|
if(elem && func.call(this, elem, i, path)){
|
||||||
return [elem]
|
// XXX is this the right output format???
|
||||||
|
return [[elem, i, path]]
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user