mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +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 () {
|
disable: function () {
|
||||||
this.disabled = true;
|
var that = this;
|
||||||
|
that.disabled = true;
|
||||||
|
if (that.currentRequest) {
|
||||||
|
that.currentRequest.abort();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
enable: function () {
|
enable: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user