Skip to content

Commit b19986a

Browse files
committed
Selectmenu: changed _unbind to _off
1 parent 8f5f4b3 commit b19986a

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
@@ -159,8 +159,8 @@ $.widget( "ui.selectmenu", {
159159
}
160160

161161
// unbind uneeded Menu events
162-
this.menu.unbind ( "mouseleave.menu" );
163-
$( document ).unbind( "click.menu" );
162+
this.menu.off( "mouseleave.menu" );
163+
$( document ).off( "click.menu" );
164164
},
165165

166166
refresh: function() {
@@ -293,7 +293,7 @@ $.widget( "ui.selectmenu", {
293293
focus: function( event ) {
294294
// init Menu on first focus
295295
this.refresh();
296-
this.button.unbind( "focus." + this.widgetName );
296+
this.button.off( "focus." + this.widgetName );
297297
},
298298
click: function( event ) {
299299
this._toggle( event );

0 commit comments

Comments
 (0)