Skip to content

Commit 192bb31

Browse files
author
Tomas Kirda
committed
Rev for 1.4.2 release
1 parent ae5f700 commit 192bb31

5 files changed

+11
-11
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"

devbridge-autocomplete.jquery.json

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

dist/jquery.autocomplete.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.4.1
2+
* Ajax Autocomplete for jQuery, version 1.4.2
33
* (c) 2017 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@@ -138,7 +138,7 @@
138138
if (!currentValue) {
139139
return suggestion.value;
140140
}
141-
141+
142142
var pattern = '(' + utils.escapeRegExChars(currentValue) + ')';
143143

144144
return suggestion.value
@@ -237,7 +237,7 @@
237237
that.hide();
238238
}, 200);
239239
},
240-
240+
241241
abortAjax: function () {
242242
var that = this;
243243
if (that.currentRequest) {
@@ -252,7 +252,7 @@
252252

253253
this.options = $.extend({}, options, suppliedOptions);
254254

255-
that.isLocal = $.isArray(options.lookup);
255+
that.isLocal = Array.isArray(options.lookup);
256256

257257
if (that.isLocal) {
258258
options.lookup = that.verifySuggestionsFormat(options.lookup);
@@ -558,7 +558,7 @@
558558
response = that.cachedResponse[cacheKey];
559559
}
560560

561-
if (response && $.isArray(response.suggestions)) {
561+
if (response && Array.isArray(response.suggestions)) {
562562
that.suggestions = response.suggestions;
563563
that.suggest();
564564
options.onSearchComplete.call(that.element, q, response.suggestions);
@@ -704,7 +704,7 @@
704704
noSuggestionsContainer.detach();
705705

706706
// clean suggestions if any
707-
container.empty();
707+
container.empty();
708708
container.append(noSuggestionsContainer);
709709

710710
if ($.isFunction(beforeRender)) {

dist/jquery.autocomplete.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
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)