Skip to content

Commit 8f5f4b3

Browse files
committed
Selectmenu: changed _bind to _on
1 parent 5092d02 commit 8f5f4b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 );

0 commit comments

Comments
 (0)