2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-12-23 03:18:55 +00:00

Cancel current request when disabling autocomplete. Closes #107

This commit is contained in:
Tomas Kirda 2013-08-31 16:39:46 -05:00
parent d1ee9c0cf2
commit 8d0b422da0

View File

@ -229,7 +229,11 @@
},
disable: function () {
this.disabled = true;
var that = this;
that.disabled = true;
if (that.currentRequest) {
that.currentRequest.abort();
}
},
enable: function () {