Skip to content
Permalink
Browse files

Selectmenu: introduce _position method for easier extending

  • Loading branch information
fnagel committed Jul 10, 2013
1 parent da4e238 commit e217c402875153ea74a26c266bb36665f82b1cbb
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 ) {

0 comments on commit e217c40

Please sign in to comment.
You can’t perform that action at this time.