Skip to content

Commit e217c40

Browse files
committed
Selectmenu: introduce _position method for easier extending
1 parent da4e238 commit e217c40

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,16 @@ $.widget( "ui.selectmenu", {
192192

193193
this.isOpen = true;
194194
this._toggleAttr();
195-
this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
195+
this._position();
196196

197197
this._on( this.document, this._documentClick );
198198

199199
this._trigger( "open", event );
200200
},
201+
202+
_position: function() {
203+
this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
204+
},
201205

202206
close: function( event ) {
203207
if ( !this.isOpen ) {

0 commit comments

Comments
 (0)