Skip to content

Commit 5f00f63

Browse files
author
Tomas Kirda
authored
Merge pull request #536 from alexandrekop/develop
Replaced $.parseJSON() with JSON.parse()
2 parents d7b487c + 005b613 commit 5f00f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
},
8787
paramName: 'query',
8888
transformResult: function (response) {
89-
return typeof response === 'string' ? $.parseJSON(response) : response;
89+
return typeof response === 'string' ? JSON.parse(response) : response;
9090
},
9191
showNoSuggestionNotice: false,
9292
noSuggestionNotice: 'No results',

0 commit comments

Comments
 (0)