From 005b6135bffb2d7af70c3ff7bd319ffefcb64d6e Mon Sep 17 00:00:00 2001 From: Alexandre Kopelevitch Date: Fri, 16 Sep 2016 09:03:50 -0300 Subject: [PATCH] - Replaced $.parseJSON with JSON.parse(), following jQuery 3.0 upgrade guide (https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson) --- src/jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 983fe45..bafcdf4 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -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',