From: Scott González Date: Wed, 21 Jul 2010 18:56:15 +0000 (-0400) Subject: Autocomplete: Fixed bad reference to ownerDocument. X-Git-Tag: 1.8.3~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c55071976168db5d002f93bcd56fc61e4f55d1f;p=jquery-ui.git Autocomplete: Fixed bad reference to ownerDocument. --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 0849ba7eb..f270d0519 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -173,7 +173,7 @@ $.widget( "ui.autocomplete", { this._initSource(); } if ( key === "appendTo" ) { - this.menu.element.appendTo( $( value || "body", this.element.ownerDocument )[0] ) + this.menu.element.appendTo( $( value || "body", this.element[0].ownerDocument )[0] ) } },