Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 193f1ce

Browse files
committed
allows optional paramFunc
1 parent 56d902b commit 193f1ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/jquery.autocomplete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@
531531
that = this,
532532
options = that.options,
533533
serviceUrl = options.serviceUrl,
534+
paramFunc = options.paramFunc || $.param,
534535
params,
535536
cacheKey,
536537
ajaxSettings;
@@ -557,7 +558,7 @@
557558
if ($.isFunction(serviceUrl)) {
558559
serviceUrl = serviceUrl.call(that.element, q);
559560
}
560-
cacheKey = serviceUrl + '?' + $.param(params || {});
561+
cacheKey = serviceUrl + '?' + paramFunc(params || {});
561562
response = that.cachedResponse[cacheKey];
562563
}
563564

0 commit comments

Comments
 (0)