Selectmenu: changed _unbind to _off

This commit is contained in:
Felix Nagel 2012-07-13 00:18:05 +02:00
parent 8f5f4b38cd
commit b19986a851

View File

@ -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 );