]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Use strict equality check.
authorScott González <scott.gonzalez@gmail.com>
Wed, 12 Oct 2011 17:53:50 +0000 (13:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 12 Oct 2011 17:53:50 +0000 (13:53 -0400)
ui/jquery.ui.autocomplete.js

index 5c5b0334ea5373ed4b90bc4d3979cbdf0d76bd98..7edd22a63889abcd1bc4377c0a6f84fdcb135fd1 100644 (file)
@@ -320,7 +320,7 @@ $.widget( "ui.autocomplete", {
                clearTimeout( self.searching );
                self.searching = setTimeout(function() {
                        // only search if the value has changed
-                       if ( self.term != self._value() ) {
+                       if ( self.term !== self._value() ) {
                                self.selectedItem = null;
                                self.search( null, event );
                        }