]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Fix stray reference to element.val(). 484/head
authorDavid Leal <dgleal@gmail.com>
Sat, 1 Oct 2011 11:06:40 +0000 (12:06 +0100)
committerDavid Leal <dgleal@gmail.com>
Sat, 1 Oct 2011 11:06:40 +0000 (12:06 +0100)
ui/jquery.ui.autocomplete.js

index a4bc82d28408625bb99a7b208701b2e9e4c5053a..6b06cfe2cebfedda2f19443ad175a2bcd2401e7d 100644 (file)
@@ -328,7 +328,7 @@ $.widget( "ui.autocomplete", {
                clearTimeout( self.searching );
                self.searching = setTimeout(function() {
                        // only search if the value has changed
-                       if ( self.term != self.element.val() ) {
+                       if ( self.term != self._value() ) {
                                self.selectedItem = null;
                                self.search( null, event );
                        }