diff options
author | Felix Nagel <info@felixnagel.com> | 2013-07-11 00:45:54 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-07-11 00:45:54 +0200 |
commit | e217c402875153ea74a26c266bb36665f82b1cbb (patch) | |
tree | abda2acfcc9972a9277efcb84e4d68aa4e59e5c7 /ui | |
parent | da4e23874dd195b6599e109aca4e8a1661399954 (diff) | |
download | jquery-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.js | 6 |
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 ) { |