@@ -22,7 +22,7 @@ $.widget("ui.menu", {
22
22
role : "listbox" ,
23
23
"aria-activedescendant" : "ui-active-menuitem"
24
24
} )
25
- . click ( function ( event ) {
25
+ . bind ( "click.menu" , function ( event ) {
26
26
if ( self . options . disabled ) {
27
27
return false ;
28
28
}
@@ -36,7 +36,7 @@ $.widget("ui.menu", {
36
36
this . refresh ( ) ;
37
37
38
38
if ( ! this . options . input ) {
39
- this . options . input = this . element . attr ( "tabindex " , 0 ) ;
39
+ this . options . input = this . element . attr ( "tabIndex " , 0 ) ;
40
40
}
41
41
this . options . input . bind ( "keydown.menu" , function ( event ) {
42
42
if ( self . options . disabled ) {
@@ -77,7 +77,7 @@ $.widget("ui.menu", {
77
77
78
78
this . element
79
79
. removeClass ( "ui-menu ui-widget ui-widget-content ui-corner-all" )
80
- . removeAttr ( "tabindex " )
80
+ . removeAttr ( "tabIndex " )
81
81
. removeAttr ( "role" )
82
82
. removeAttr ( "aria-activedescendant" ) ;
83
83
@@ -86,7 +86,7 @@ $.widget("ui.menu", {
86
86
. removeAttr ( "role" )
87
87
. children ( "a" )
88
88
. removeClass ( "ui-corner-all" )
89
- . removeAttr ( "tabindex " )
89
+ . removeAttr ( "tabIndex " )
90
90
. unbind ( ".menu" ) ;
91
91
} ,
92
92
@@ -100,7 +100,7 @@ $.widget("ui.menu", {
100
100
101
101
items . children ( "a" )
102
102
. addClass ( "ui-corner-all" )
103
- . attr ( "tabindex " , - 1 )
103
+ . attr ( "tabIndex " , - 1 )
104
104
// mouseenter doesn't work with event delegation
105
105
. bind ( "mouseenter.menu" , function ( event ) {
106
106
if ( self . options . disabled ) {
0 commit comments