mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d68432ed3
commit
d18ade0149
@ -946,10 +946,14 @@ 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...
|
// index...
|
||||||
typeof(query) == typeof(123) ?
|
typeof(query) == typeof(123) ?
|
||||||
query == i
|
query == i
|
||||||
|
// predicate...
|
||||||
|
: query instanceof Function ?
|
||||||
|
query.call(this, e, p)
|
||||||
// regular expression...
|
// regular expression...
|
||||||
: query instanceof RegExp ?
|
: query instanceof RegExp ?
|
||||||
query.test(p.join('/'))
|
query.test(p.join('/'))
|
||||||
@ -965,7 +969,7 @@ var BaseBrowserPrototype = {
|
|||||||
|| q == p[i] })
|
|| q == p[i] })
|
||||||
.length == p.length)
|
.length == p.length)
|
||||||
// XXX add attribute queries...
|
// XXX add attribute queries...
|
||||||
: query == p) }, options)
|
: false)) }, options)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user