mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 12:55:12 +00:00
Cancel current request when disabling autocomplete. Closes #107
This commit is contained in:
parent
d1ee9c0cf2
commit
8d0b422da0
@ -229,7 +229,11 @@
|
||||
},
|
||||
|
||||
disable: function () {
|
||||
this.disabled = true;
|
||||
var that = this;
|
||||
that.disabled = true;
|
||||
if (that.currentRequest) {
|
||||
that.currentRequest.abort();
|
||||
}
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user