diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 620d496..a5e373c 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -558,12 +558,13 @@ ajaxSettings; options.params[options.paramName] = q; - params = options.ignoreParams ? null : options.params; if (options.onSearchStart.call(that.element, options.params) === false) { return; } + params = options.ignoreParams ? null : options.params; + if ($.isFunction(options.lookup)){ options.lookup(q, function (data) { that.suggestions = data.suggestions;