aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-12-12 16:34:56 +0100
committerFelix Nagel <info@felixnagel.com>2012-12-12 16:34:56 +0100
commitd1350f9f1113ef5590ec010f16da7068646aec01 (patch)
treee10b251f9f685b839ee737f8dcf8807626950f0d
parent2845d38d405148b8628929e1cadc0ffe7f6f8abf (diff)
downloadjquery-ui-d1350f9f1113ef5590ec010f16da7068646aec01.tar.gz
jquery-ui-d1350f9f1113ef5590ec010f16da7068646aec01.zip
Selectmenu: improve option appendTo handling in appendTo method
-rw-r--r--ui/jquery.ui.selectmenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index f03a66927..bc1109918 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -401,7 +401,7 @@ $.widget( "ui.selectmenu", {
this._super( key, value );
if ( key === "appendTo" ) {
- this.menuWrap.appendTo( $( value || "body", this.element[ 0 ].ownerDocument )[ 0 ] );
+ this.menuWrap.appendTo( this.document.find( value || "body" )[0] );
}
if ( key === "disabled" ) {
this.menu.menu( "option", "disabled", value );