2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 16:59:01 +00:00

Rev for 1.4.2 release

This commit is contained in:
Tomas Kirda 2017-08-24 08:04:32 -05:00
parent ae5f70052b
commit 192bb3135e
5 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "devbridge-autocomplete", "name": "devbridge-autocomplete",
"version": "1.4.1", "version": "1.4.2",
"homepage": "https://github.com/devbridge/jQuery-Autocomplete", "homepage": "https://github.com/devbridge/jQuery-Autocomplete",
"authors": [ "authors": [
"Tomas Kirda" "Tomas Kirda"

View File

@ -6,7 +6,7 @@
"ajax", "ajax",
"autocomplete" "autocomplete"
], ],
"version": "1.4.1", "version": "1.4.2",
"author": { "author": {
"name": "Tomas Kirda", "name": "Tomas Kirda",
"url": "https://github.com/tkirda" "url": "https://github.com/tkirda"

View File

@ -1,5 +1,5 @@
/** /**
* Ajax Autocomplete for jQuery, version 1.4.1 * Ajax Autocomplete for jQuery, version 1.4.2
* (c) 2017 Tomas Kirda * (c) 2017 Tomas Kirda
* *
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license. * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@ -138,7 +138,7 @@
if (!currentValue) { if (!currentValue) {
return suggestion.value; return suggestion.value;
} }
var pattern = '(' + utils.escapeRegExChars(currentValue) + ')'; var pattern = '(' + utils.escapeRegExChars(currentValue) + ')';
return suggestion.value return suggestion.value
@ -237,7 +237,7 @@
that.hide(); that.hide();
}, 200); }, 200);
}, },
abortAjax: function () { abortAjax: function () {
var that = this; var that = this;
if (that.currentRequest) { if (that.currentRequest) {
@ -252,7 +252,7 @@
this.options = $.extend({}, options, suppliedOptions); this.options = $.extend({}, options, suppliedOptions);
that.isLocal = $.isArray(options.lookup); that.isLocal = Array.isArray(options.lookup);
if (that.isLocal) { if (that.isLocal) {
options.lookup = that.verifySuggestionsFormat(options.lookup); options.lookup = that.verifySuggestionsFormat(options.lookup);
@ -558,7 +558,7 @@
response = that.cachedResponse[cacheKey]; response = that.cachedResponse[cacheKey];
} }
if (response && $.isArray(response.suggestions)) { if (response && Array.isArray(response.suggestions)) {
that.suggestions = response.suggestions; that.suggestions = response.suggestions;
that.suggest(); that.suggest();
options.onSearchComplete.call(that.element, q, response.suggestions); options.onSearchComplete.call(that.element, q, response.suggestions);
@ -704,7 +704,7 @@
noSuggestionsContainer.detach(); noSuggestionsContainer.detach();
// clean suggestions if any // clean suggestions if any
container.empty(); container.empty();
container.append(noSuggestionsContainer); container.append(noSuggestionsContainer);
if ($.isFunction(beforeRender)) { if ($.isFunction(beforeRender)) {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "devbridge-autocomplete", "name": "devbridge-autocomplete",
"version": "1.4.1", "version": "1.4.2",
"description": "Autocomplete provides suggestions while you type into the text field.", "description": "Autocomplete provides suggestions while you type into the text field.",
"homepage": "https://github.com/devbridge/jQuery-Autocomplete", "homepage": "https://github.com/devbridge/jQuery-Autocomplete",
"author": "Tomas Kirda (https://twitter.com/tkirda)", "author": "Tomas Kirda (https://twitter.com/tkirda)",