Skip to content
Browse files

Selectmenu: changed _unbind to _off

  • Loading branch information...
1 parent 8f5f4b3 commit b19986a851c9a48302a409c7aa3529e53ec5cb09 @fnagel fnagel committed Jul 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
View
6 ui/jquery.ui.selectmenu.js
@@ -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 );

0 comments on commit b19986a

Please sign in to comment.
Something went wrong with that request. Please try again.