aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-07-11 00:45:54 +0200
committerFelix Nagel <info@felixnagel.com>2013-07-11 00:45:54 +0200
commite217c402875153ea74a26c266bb36665f82b1cbb (patch)
treeabda2acfcc9972a9277efcb84e4d68aa4e59e5c7 /ui
parentda4e23874dd195b6599e109aca4e8a1661399954 (diff)
downloadjquery-ui-e217c402875153ea74a26c266bb36665f82b1cbb.tar.gz
jquery-ui-e217c402875153ea74a26c266bb36665f82b1cbb.zip
Selectmenu: introduce _position method for easier extending
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.selectmenu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index f9ece9c02..2b9f41547 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -192,12 +192,16 @@ $.widget( "ui.selectmenu", {
this.isOpen = true;
this._toggleAttr();
- this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ this._position();
this._on( this.document, this._documentClick );
this._trigger( "open", event );
},
+
+ _position: function() {
+ this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ },
close: function( event ) {
if ( !this.isOpen ) {