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:
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