2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 16:59:01 +00:00

Use empty suggestions array if it is bad query.

This commit is contained in:
Tomas Kirda 2014-09-21 18:06:59 -05:00
parent 9d8118fa6b
commit 2a0f1f7b89

View File

@ -575,7 +575,7 @@
options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
});
} else {
options.onSearchComplete.call(that.element, q, result.suggestions);
options.onSearchComplete.call(that.element, q, []);
}
},