diff options
author | Felix Nagel <info@felixnagel.com> | 2012-07-13 00:18:05 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-07-13 00:18:05 +0200 |
commit | b19986a851c9a48302a409c7aa3529e53ec5cb09 (patch) | |
tree | 0064e805ebf621f7887271ca855e4cca87a5eb01 | |
parent | 8f5f4b38cd76e543cc0403ff4408d3f26bfe8515 (diff) | |
download | jquery-ui-b19986a851c9a48302a409c7aa3529e53ec5cb09.tar.gz jquery-ui-b19986a851c9a48302a409c7aa3529e53ec5cb09.zip |
Selectmenu: changed _unbind to _off
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index b10603e11..fd9bf4727 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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 ); |