diff options
author | Felix Nagel <info@felixnagel.com> | 2012-07-13 00:10:49 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-07-13 00:10:49 +0200 |
commit | 8f5f4b38cd76e543cc0403ff4408d3f26bfe8515 (patch) | |
tree | 8027f9409bee85749ec216d36dfb7a0609d2f306 /ui/jquery.ui.selectmenu.js | |
parent | 5092d0296a010280ee9d004f2fe06afbf1c45db5 (diff) | |
download | jquery-ui-8f5f4b38cd76e543cc0403ff4408d3f26bfe8515.tar.gz jquery-ui-8f5f4b38cd76e543cc0403ff4408d3f26bfe8515.zip |
Selectmenu: changed _bind to _on
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-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 c90c25725..b10603e11 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 ); |