Skip to content
Permalink
Browse files

Selectmenu: changed _bind to _on

  • Loading branch information...
fnagel committed Jul 12, 2012
1 parent 5092d02 commit 8f5f4b38cd76e543cc0403ff4408d3f26bfe8515
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
@@ -42,22 +42,22 @@ $.widget( "ui.selectmenu", {
this.ids = { id: selectmenuId, button: selectmenuId + '-button', menu: selectmenuId + '-menu' };

// catch click event of the label
this._bind({
this._on({
'click': function( event ) {
this.button.focus();
event.preventDefault();
}
});

this._drawButton();
this._bind( this.button, this._buttonEvents );
this._on( this.button, this._buttonEvents );
this._hoverable( this.button );
this._focusable( this.button );

this._drawMenu();

// document click closes menu
this._bind( document, {
this._on( document, {
click: function( event ) {
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
this.close( event );

0 comments on commit 8f5f4b3

Please sign in to comment.
You can’t perform that action at this time.