mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00: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
|
||||
&& pattern.length == path.length
|
||||
&& !pattern.reduce(function(res, e, i){
|
||||
return res || (e != '*' && e != path[i]) }, false) }
|
||||
return res || !(e == '*' || e == path[i]) }, false) }
|
||||
// index...
|
||||
: function(elem, i, path){
|
||||
return elem
|
||||
@ -953,7 +953,8 @@ var BaseBrowserPrototype = {
|
||||
return this.walk(
|
||||
function(i, path, elem, doNested){
|
||||
if(elem && func.call(this, elem, i, path)){
|
||||
return [elem]
|
||||
// XXX is this the right output format???
|
||||
return [[elem, i, path]]
|
||||
}
|
||||
return []
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user