2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

Merge pull request #536 from alexandrekop/develop

Replaced $.parseJSON() with JSON.parse()
This commit is contained in:
Tomas Kirda 2016-09-16 09:58:25 -05:00 committed by GitHub
commit 5f00f638f0

View File

@ -86,7 +86,7 @@
}, },
paramName: 'query', paramName: 'query',
transformResult: function (response) { transformResult: function (response) {
return typeof response === 'string' ? $.parseJSON(response) : response; return typeof response === 'string' ? JSON.parse(response) : response;
}, },
showNoSuggestionNotice: false, showNoSuggestionNotice: false,
noSuggestionNotice: 'No results', noSuggestionNotice: 'No results',