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", {
4242 this . ids = { id : selectmenuId , button : selectmenuId + '-button' , menu : selectmenuId + '-menu' } ;
4343
4444 // catch click event of the label
45- this . _bind ( {
45+ this . _on ( {
4646 'click' : function ( event ) {
4747 this . button . focus ( ) ;
4848 event . preventDefault ( ) ;
4949 }
5050 } ) ;
5151
5252 this . _drawButton ( ) ;
53- this . _bind ( this . button , this . _buttonEvents ) ;
53+ this . _on ( this . button , this . _buttonEvents ) ;
5454 this . _hoverable ( this . button ) ;
5555 this . _focusable ( this . button ) ;
5656
5757 this . _drawMenu ( ) ;
5858
5959 // document click closes menu
60- this . _bind ( document , {
60+ this . _on ( document , {
6161 click : function ( event ) {
6262 if ( this . isOpen && ! $ ( event . target ) . closest ( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this . ids . button ) . length ) {
6363 this . close ( event ) ;
You can’t perform that action at this time.
0 commit comments