aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-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 );