mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking + preparing for work on navigation...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d18ade0149
commit
7e4d976b2a
@ -942,6 +942,17 @@ var BaseBrowserPrototype = {
|
|||||||
query = typeof(query) == typeof('str') ?
|
query = typeof(query) == typeof('str') ?
|
||||||
[query]
|
[query]
|
||||||
: query
|
: query
|
||||||
|
// XXX not sure about this...
|
||||||
|
//query = query instanceof Array ?
|
||||||
|
// query
|
||||||
|
// .map(function(d){
|
||||||
|
// return d == '*' ?
|
||||||
|
// d
|
||||||
|
// : d.indexOf('*') > 0 ?
|
||||||
|
// new RegExp(d
|
||||||
|
// .replace(/\*/g, '.*'))
|
||||||
|
// : d})
|
||||||
|
// : query
|
||||||
|
|
||||||
var i = -1
|
var i = -1
|
||||||
return this.filter(function(e, p){
|
return this.filter(function(e, p){
|
||||||
@ -969,7 +980,23 @@ var BaseBrowserPrototype = {
|
|||||||
|| q == p[i] })
|
|| q == p[i] })
|
||||||
.length == p.length)
|
.length == p.length)
|
||||||
// XXX add attribute queries...
|
// XXX add attribute queries...
|
||||||
: false)) }, options)
|
: false)) }, options) },
|
||||||
|
|
||||||
|
// XXX move this to a more logical spot...
|
||||||
|
// XXX should also take path...
|
||||||
|
indexOf: function(item){
|
||||||
|
// XXX
|
||||||
|
},
|
||||||
|
// XXX move this to a more logical spot...
|
||||||
|
// XXX should also take index...
|
||||||
|
pathOf: function(item){
|
||||||
|
// XXX
|
||||||
|
},
|
||||||
|
|
||||||
|
// XXX support: up/down/left/right/first/last/next/prev
|
||||||
|
// XXX extend support for screen oriented nav in a subclass...
|
||||||
|
navigate: function(direction){
|
||||||
|
// XXX get then return element...
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user