]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Fixed bad reference to ownerDocument.
authorScott González <scott.gonzalez@gmail.com>
Wed, 21 Jul 2010 18:56:15 +0000 (14:56 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 21 Jul 2010 18:56:15 +0000 (14:56 -0400)
ui/jquery.ui.autocomplete.js

index 0849ba7ebb0eb918ae4157119916f745d3ce1663..f270d0519ccd651721c9aec0c5b9bbca854c1672 100644 (file)
@@ -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] )
                }
        },