Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit fa2b250

Browse files
committed
Added reference to 'settings' object on call() to URL function, computeURL(). Allows for greater dynamic URL functionality with references back to the original init() of the token-input.
1 parent c40c001 commit fa2b250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ $.TokenList = function (input, url_or_data, settings) {
862862
function computeURL() {
863863
var url = settings.url;
864864
if(typeof settings.url == 'function') {
865-
url = settings.url.call();
865+
url = settings.url.call(settings);
866866
}
867867
return url;
868868
}

0 commit comments

Comments
 (0)