diff options
author | Felix Nagel <info@felixnagel.com> | 2013-05-30 21:04:45 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-05-30 21:04:45 +0200 |
commit | a572f72ddeaf64219676c57af5ad8b2aa80cbe48 (patch) | |
tree | 594dafa0ec7c45adcbb5382feaab15a9ce33c754 /ui | |
parent | 29f726c55351ea78d01a04d25986b15da7b56d63 (diff) | |
download | jquery-ui-a572f72ddeaf64219676c57af5ad8b2aa80cbe48.tar.gz jquery-ui-a572f72ddeaf64219676c57af5ad8b2aa80cbe48.zip |
Selectmenu: do not call focus menu method when close method us used
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 701991e3b..8b86b61a4 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -118,7 +118,7 @@ $.widget( "ui.selectmenu", { .appendTo( this._appendTo() ); // Init menu widget - menuInstance = this.menu.menu({ + this.menuInstance = this.menu.menu({ select: function( event, ui ) { var item = ui.item.data( "ui-selectmenu-item" ); @@ -151,9 +151,9 @@ $.widget( "ui.selectmenu", { this.menu.addClass( "ui-corner-bottom" ).removeClass( "ui-corner-all" ); // Make sure focus stays on selected item - menuInstance.delay = 999999999; + this.menuInstance.delay = 999999999; // Unbind uneeded Menu events - menuInstance._off( this.menu, "mouseleave" ); + this.menuInstance._off( this.menu, "mouseleave" ); }, refresh: function() { @@ -210,7 +210,7 @@ $.widget( "ui.selectmenu", { // Check if we have an item to select if ( this.menuItems ) { - this.menu.menu( "focus", null, this._getSelectedItem() ); + this.menuInstance.active = this._getSelectedItem(); } this._off( this.document ); |