mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Selectmenu: changed _unbind to _off
This commit is contained in:
parent
8f5f4b38cd
commit
b19986a851
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -159,8 +159,8 @@ $.widget( "ui.selectmenu", {
|
||||
}
|
||||
|
||||
// unbind uneeded Menu events
|
||||
this.menu.unbind ( "mouseleave.menu" );
|
||||
$( document ).unbind( "click.menu" );
|
||||
this.menu.off( "mouseleave.menu" );
|
||||
$( document ).off( "click.menu" );
|
||||
},
|
||||
|
||||
refresh: function() {
|
||||
@ -293,7 +293,7 @@ $.widget( "ui.selectmenu", {
|
||||
focus: function( event ) {
|
||||
// init Menu on first focus
|
||||
this.refresh();
|
||||
this.button.unbind( "focus." + this.widgetName );
|
||||
this.button.off( "focus." + this.widgetName );
|
||||
},
|
||||
click: function( event ) {
|
||||
this._toggle( event );
|
||||
|
Loading…
Reference in New Issue
Block a user