2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 04:45:12 +00:00

Use strict equality when comparing values.

This commit is contained in:
Tomas Kirda 2014-08-26 13:46:02 -05:00
parent 17c665557b
commit 6f46c46356

View File

@ -446,7 +446,7 @@
query = that.getQuery(value),
index;
if (that.selection && that.currentValue != query) {
if (that.selection && that.currentValue !== query) {
that.selection = null;
(options.onInvalidateSelection || $.noop).call(that.element);
}