mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d68432ed3
commit
d18ade0149
@ -946,26 +946,30 @@ var BaseBrowserPrototype = {
|
|||||||
var i = -1
|
var i = -1
|
||||||
return this.filter(function(e, p){
|
return this.filter(function(e, p){
|
||||||
i++
|
i++
|
||||||
return (
|
return (query === e
|
||||||
// index...
|
|| (
|
||||||
typeof(query) == typeof(123) ?
|
// index...
|
||||||
query == i
|
typeof(query) == typeof(123) ?
|
||||||
// regular expression...
|
query == i
|
||||||
: query instanceof RegExp ?
|
// predicate...
|
||||||
query.test(p.join('/'))
|
: query instanceof Function ?
|
||||||
// direct path comparison...
|
query.call(this, e, p)
|
||||||
: query instanceof Array ?
|
// regular expression...
|
||||||
query.cmp(p)
|
: query instanceof RegExp ?
|
||||||
|| (query.length == p.length
|
query.test(p.join('/'))
|
||||||
&& query
|
// direct path comparison...
|
||||||
.filter(function(q, i){
|
: query instanceof Array ?
|
||||||
return q == '*'
|
query.cmp(p)
|
||||||
|| (q instanceof RegExp
|
|| (query.length == p.length
|
||||||
&& q.test(p[i]))
|
&& query
|
||||||
|| q == p[i] })
|
.filter(function(q, i){
|
||||||
.length == p.length)
|
return q == '*'
|
||||||
// XXX add attribute queries...
|
|| (q instanceof RegExp
|
||||||
: query == p) }, options)
|
&& q.test(p[i]))
|
||||||
|
|| q == p[i] })
|
||||||
|
.length == p.length)
|
||||||
|
// XXX add attribute queries...
|
||||||
|
: false)) }, options)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user