mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4b934c52c9
commit
819f3cafe9
@ -3100,11 +3100,17 @@ var BaseBrowserPrototype = {
|
|||||||
// this is different from .focus('next') / .focus('prev')...
|
// this is different from .focus('next') / .focus('prev')...
|
||||||
// NOTE: these also differ from focus in that they will only go
|
// NOTE: these also differ from focus in that they will only go
|
||||||
// through the main section...
|
// through the main section...
|
||||||
next: function(){
|
next: function(options){
|
||||||
this.focus(this.get('next') || this.get('first'))
|
options = Object.assign(
|
||||||
|
{ skipDisabled: !(this.options || {}).focusDisabledItems },
|
||||||
|
options || {})
|
||||||
|
this.focus(this.get('next', options) || this.get('first', options))
|
||||||
return this },
|
return this },
|
||||||
prev: function(){
|
prev: function(options){
|
||||||
this.focus(this.get('prev') || this.get('last'))
|
options = Object.assign(
|
||||||
|
{ skipDisabled: !(this.options || {}).focusDisabledItems },
|
||||||
|
options || {})
|
||||||
|
this.focus(this.get('prev', options) || this.get('last', options))
|
||||||
return this },
|
return this },
|
||||||
// selection...
|
// selection...
|
||||||
select: makeItemOptionOnEventMethod('select', 'selected', {
|
select: makeItemOptionOnEventMethod('select', 'selected', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user