2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 00:39:01 +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',
transformResult: function (response) {
return typeof response === 'string' ? $.parseJSON(response) : response;
return typeof response === 'string' ? JSON.parse(response) : response;
},
showNoSuggestionNotice: false,
noSuggestionNotice: 'No results',