2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 14:50:57 +00:00

Clear onChangeInterval when disabling or hiding suggestions. Fixes #238

This commit is contained in:
Tomas Kirda 2014-09-08 10:34:03 -05:00
parent d3e62d904d
commit 26f2c87dd2

View File

@ -247,6 +247,7 @@
disable: function () {
var that = this;
that.disabled = true;
clearInterval(that.onChangeInterval);
if (that.currentRequest) {
that.currentRequest.abort();
}
@ -595,6 +596,7 @@
var that = this;
that.visible = false;
that.selectedIndex = -1;
clearInterval(that.onChangeInterval);
$(that.suggestionsContainer).hide();
that.signalHint(null);
},