Skip to content

Commit

Permalink
Selectmenu: fixed method _setSelected called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Sep 27, 2011
1 parent afec3f9 commit 7e8e542
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/jquery.ui.selectmenu.js
Expand Up @@ -60,8 +60,8 @@ $.widget( "ui.selectmenu", {
self.element.bind( 'click.selectmenu', function() {
self.newelement.focus();
return false;
})
.hide();
});
// .hide();

// create button
self.newelement = $( '<a />', {
Expand Down Expand Up @@ -187,7 +187,6 @@ $.widget( "ui.selectmenu", {
},
focus: function( event, ui ) {
var item = ui.item.data( "item.selectmenu" );
if ( !self.opened ) self._setSelected( event, item );
self._trigger( "focus", event, { item: item } );
}
})
Expand Down

0 comments on commit 7e8e542

Please sign in to comment.