From a279fe90b3f81965f0c9af232c884959a5254a9b Mon Sep 17 00:00:00 2001 From: Tomas Kirda Date: Sun, 5 Mar 2017 18:40:19 -0600 Subject: [PATCH] Update documentation, fixes #557 --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a4041b8..c7dd36e 100644 --- a/readme.md +++ b/readme.md @@ -30,7 +30,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified. * `noCache`: Boolean value indicating whether to cache suggestion results. Default `false`. * `delimiter`: String or RegExp, that splits input value and takes last part to as query for suggestions. Useful when for example you need to fill list of comma separated values. -* `onSearchStart`: `function (query) {}` called before Ajax request. `this` is bound to input element. +* `onSearchStart`: `function (params) {}` called before Ajax request. `this` is bound to input element. * `onSearchComplete`: `function (query, suggestions) {}` called after Ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results. * `onSearchError`: `function (query, jqXHR, textStatus, errorThrown) {}` called if Ajax request fails. `this` is bound to input element. * `transformResult`: `function(response, originalQuery) {}` called after the result of the query is ready. Converts the result into response.suggestions format.