Skip to content

Commit afdece2

Browse files
author
Tomas Kirda
committed
Rev for 1.2.19 release
1 parent d7b487c commit afdece2

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

bower.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.18",
3+
"version": "1.2.19",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"
@@ -16,7 +16,9 @@
1616
"**/.*",
1717
"node_modules",
1818
"bower_components",
19-
"spec"
19+
"spec",
20+
"scripts",
21+
"content"
2022
],
2123
"dependencies": {
2224
"jquery": ">=1.7"

devbridge-autocomplete.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ajax",
77
"autocomplete"
88
],
9-
"version": "1.2.18",
9+
"version": "1.2.19",
1010
"author": {
1111
"name": "Tomas Kirda",
1212
"url": "https://github.com/tkirda"

dist/jquery.autocomplete.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.2.18
2+
* Ajax Autocomplete for jQuery, version 1.2.19
33
* (c) 2015 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@@ -217,6 +217,14 @@
217217
onBlur: function () {
218218
this.enableKillerFn();
219219
},
220+
221+
abortAjax: function () {
222+
var that = this;
223+
if (that.currentRequest) {
224+
that.currentRequest.abort();
225+
that.currentRequest = null;
226+
}
227+
},
220228

221229
setOptions: function (suppliedOptions) {
222230
var that = this,
@@ -256,9 +264,7 @@
256264
var that = this;
257265
that.disabled = true;
258266
clearInterval(that.onChangeInterval);
259-
if (that.currentRequest) {
260-
that.currentRequest.abort();
261-
}
267+
that.abortAjax();
262268
},
263269

264270
enable: function () {
@@ -573,9 +579,7 @@
573579
that.suggest();
574580
options.onSearchComplete.call(that.element, q, response.suggestions);
575581
} else if (!that.isBadQuery(q)) {
576-
if (that.currentRequest) {
577-
that.currentRequest.abort();
578-
}
582+
that.abortAjax();
579583

580584
ajaxSettings = {
581585
url: serviceUrl,

dist/jquery.autocomplete.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.18",
3+
"version": "1.2.19",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
66
"author": "Tomas Kirda (https://twitter.com/tkirda)",

0 commit comments

Comments
 (0)