mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 12:55:12 +00:00
Merge pull request #639 from erotte/migrate-isArray
migrate deprecated `$.isArray` to `Array.isArray`
This commit is contained in:
commit
ae5f70052b
@ -252,7 +252,7 @@
|
||||
|
||||
this.options = $.extend({}, options, suppliedOptions);
|
||||
|
||||
that.isLocal = $.isArray(options.lookup);
|
||||
that.isLocal = Array.isArray(options.lookup);
|
||||
|
||||
if (that.isLocal) {
|
||||
options.lookup = that.verifySuggestionsFormat(options.lookup);
|
||||
@ -558,7 +558,7 @@
|
||||
response = that.cachedResponse[cacheKey];
|
||||
}
|
||||
|
||||
if (response && $.isArray(response.suggestions)) {
|
||||
if (response && Array.isArray(response.suggestions)) {
|
||||
that.suggestions = response.suggestions;
|
||||
that.suggest();
|
||||
options.onSearchComplete.call(that.element, q, response.suggestions);
|
||||
|
Loading…
Reference in New Issue
Block a user