Skip to content

Commit 6f46c46

Browse files
author
Tomas Kirda
committed
Use strict equality when comparing values.
1 parent 17c6655 commit 6f46c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446
query = that.getQuery(value),
447447
index;
448448

449-
if (that.selection && that.currentValue != query) {
449+
if (that.selection && that.currentValue !== query) {
450450
that.selection = null;
451451
(options.onInvalidateSelection || $.noop).call(that.element);
452452
}

0 commit comments

Comments
 (0)