We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f5f4b3 commit b19986aCopy full SHA for b19986a
ui/jquery.ui.selectmenu.js
@@ -159,8 +159,8 @@ $.widget( "ui.selectmenu", {
159
}
160
161
// unbind uneeded Menu events
162
- this.menu.unbind ( "mouseleave.menu" );
163
- $( document ).unbind( "click.menu" );
+ this.menu.off( "mouseleave.menu" );
+ $( document ).off( "click.menu" );
164
},
165
166
refresh: function() {
@@ -293,7 +293,7 @@ $.widget( "ui.selectmenu", {
293
focus: function( event ) {
294
// init Menu on first focus
295
this.refresh();
296
- this.button.unbind( "focus." + this.widgetName );
+ this.button.off( "focus." + this.widgetName );
297
298
click: function( event ) {
299
this._toggle( event );
0 commit comments