]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: introduce _position method for easier extending
authorFelix Nagel <info@felixnagel.com>
Wed, 10 Jul 2013 22:45:54 +0000 (00:45 +0200)
committerFelix Nagel <info@felixnagel.com>
Wed, 10 Jul 2013 22:45:54 +0000 (00:45 +0200)
ui/jquery.ui.selectmenu.js

index f9ece9c02557c7d987bc2f6e8e0f5aa9141e715e..2b9f415471c52b4b99357096057117706cc77a5e 100644 (file)
@@ -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 ) {