File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,22 @@ $.widget( "ui.selectmenu", {
42
42
this . ids = { id : selectmenuId , button : selectmenuId + '-button' , menu : selectmenuId + '-menu' } ;
43
43
44
44
// catch click event of the label
45
- this . _bind ( {
45
+ this . _on ( {
46
46
'click' : function ( event ) {
47
47
this . button . focus ( ) ;
48
48
event . preventDefault ( ) ;
49
49
}
50
50
} ) ;
51
51
52
52
this . _drawButton ( ) ;
53
- this . _bind ( this . button , this . _buttonEvents ) ;
53
+ this . _on ( this . button , this . _buttonEvents ) ;
54
54
this . _hoverable ( this . button ) ;
55
55
this . _focusable ( this . button ) ;
56
56
57
57
this . _drawMenu ( ) ;
58
58
59
59
// document click closes menu
60
- this . _bind ( document , {
60
+ this . _on ( document , {
61
61
click : function ( event ) {
62
62
if ( this . isOpen && ! $ ( event . target ) . closest ( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this . ids . button ) . length ) {
63
63
this . close ( event ) ;
You can’t perform that action at this time.
0 commit comments