From 8f5f4b38cd76e543cc0403ff4408d3f26bfe8515 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Fri, 13 Jul 2012 00:10:49 +0200 Subject: [PATCH] Selectmenu: changed _bind to _on --- ui/jquery.ui.selectmenu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index c90c257258..b10603e118 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -42,7 +42,7 @@ $.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(); @@ -50,14 +50,14 @@ $.widget( "ui.selectmenu", { }); 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 );