Skip to content

Commit 805b45c

Browse files
author
Tomas Kirda
committed
Allow callback function to be set as lookup in options. Fixes devbridge#227
1 parent 05a337c commit 805b45c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jquery.autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@
541541
return;
542542
}
543543

544-
if ($.isFunction(that.lookup)){
545-
that.lookup(q, function (data) {
544+
if ($.isFunction(options.lookup)){
545+
options.lookup(q, function (data) {
546546
that.suggestions = data.suggestions;
547547
that.suggest();
548548
options.onSearchComplete.call(that.element, q, data.suggestions);

0 commit comments

Comments
 (0)