Autocomplete: Fixed bad reference to ownerDocument.

This commit is contained in:
Scott González 2010-07-21 14:56:15 -04:00
parent 74e0d4f473
commit 4c55071976

View 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] )
}
},