Skip to content

Commit 005b613

Browse files
committed
- Replaced $.parseJSON with JSON.parse(), following jQuery 3.0 upgrade guide (https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson)
1 parent d7b487c commit 005b613

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)