Skip to content

Commit bd25b4d

Browse files
author
Tomas Kirda
committed
Pass original query to transformResult callback
1 parent 56d902b commit bd25b4d

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
@@ -580,7 +580,7 @@
580580
that.currentRequest = $.ajax(ajaxSettings).done(function (data) {
581581
var result;
582582
that.currentRequest = null;
583-
result = options.transformResult(data);
583+
result = options.transformResult(data, q);
584584
that.processResponse(result, q, cacheKey);
585585
options.onSearchComplete.call(that.element, q, result.suggestions);
586586
}).fail(function (jqXHR, textStatus, errorThrown) {

0 commit comments

Comments
 (0)