From bd25b4d992c3f5b5901c37ffe81cca1506dbd038 Mon Sep 17 00:00:00 2001 From: Tomas Kirda Date: Thu, 4 Jun 2015 12:33:32 -0500 Subject: [PATCH] Pass original query to transformResult callback --- 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 353f186..dbddb5a 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -580,7 +580,7 @@ that.currentRequest = $.ajax(ajaxSettings).done(function (data) { var result; that.currentRequest = null; - result = options.transformResult(data); + result = options.transformResult(data, q); that.processResponse(result, q, cacheKey); options.onSearchComplete.call(that.element, q, result.suggestions); }).fail(function (jqXHR, textStatus, errorThrown) {