File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ test('#241 - "focus" doesn\'t bubble', function() {
19
19
ok ( $ ( '.ui-selectmenu-menu li:eq(1)' ) . hasClass ( 'ui-selectmenu-item-focus' ) , 'after down arrow press, second item should have focus' ) ;
20
20
21
21
// simulate('keypress') not working consistently in all browsers
22
+ // this problem but for firefox now: http://bugs.jqueryui.com/ticket/3229
22
23
var e = new $ . Event ( 'keypress' , { which : 'a' . charCodeAt ( 0 ) } ) ;
23
24
$ ( '.ui-selectmenu-menu-dropdown' ) . trigger ( e ) ;
24
25
ok ( $ ( '.ui-selectmenu-menu li:eq(2)' ) . hasClass ( 'ui-selectmenu-item-focus' ) , 'after "a" key press, third item should have focus' ) ;
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ $.widget("ui.selectmenu", {
317
317
thisAAttr [ 'typeahead' ] = selectOptionData [ i ] . typeahead ;
318
318
}
319
319
var thisA = $ ( '<a/>' , thisAAttr )
320
- . bind ( 'focus.selectmenu' , function ( e ) {
320
+ . bind ( 'focus.selectmenu' , function ( ) {
321
321
$ ( this ) . parent ( ) . mouseover ( ) ;
322
322
} )
323
323
. bind ( 'blur.selectmenu' , function ( ) {
@@ -343,7 +343,7 @@ $.widget("ui.selectmenu", {
343
343
. bind ( "click.selectmenu" , function ( ) {
344
344
return false ;
345
345
} )
346
- . bind ( 'mouseover.selectmenu' , function ( e ) {
346
+ . bind ( 'mouseover.selectmenu' , function ( ) {
347
347
// no hover if diabled
348
348
if ( ! $ ( this ) . hasClass ( self . namespace + '-state-disabled' ) && ! $ ( this ) . parent ( "ul" ) . parent ( "li" ) . hasClass ( self . namespace + '-state-disabled' ) ) {
349
349
self . _selectedOptionLi ( ) . addClass ( activeClass ) ;
You can’t perform that action at this time.
0 commit comments