diff options
author | Felix Nagel <info@felixnagel.com> | 2012-11-29 19:54:10 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-11-29 19:54:10 +0100 |
commit | 71e744ad30eb400baa60b333f2d4b01cf30a7b28 (patch) | |
tree | 6846d4df93158bb0ef689159f635bd569b46d07b /ui/jquery.ui.selectmenu.js | |
parent | 080b5bca0a80eb5f736d1af4195297efec08aa82 (diff) | |
download | jquery-ui-71e744ad30eb400baa60b333f2d4b01cf30a7b28.tar.gz jquery-ui-71e744ad30eb400baa60b333f2d4b01cf30a7b28.zip |
Selectmenu: move button event binding in _drawButton
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index e7ed22f5b..f3400e653 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -41,10 +41,6 @@ $.widget( "ui.selectmenu", { this.ids = { id: selectmenuId, button: selectmenuId + "-button", menu: selectmenuId + "-menu" }; this._drawButton(); - this._on( this.button, this._buttonEvents ); - this._hoverable( this.button ); - this._focusable( this.button ); - this._drawMenu(); // document click closes menu @@ -106,7 +102,11 @@ $.widget( "ui.selectmenu", { "class": "ui-selectmenu-button" }) .append( this.button ) - .insertAfter( this.element ); + .insertAfter( this.element ); + + this._on( this.button, this._buttonEvents ); + this._hoverable( this.button ); + this._focusable( this.button ); }, _drawMenu: function() { |