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

Commit 3554eea

Browse files
committed
Check for settings existence
1 parent 181f913 commit 3554eea

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
@@ -733,7 +733,7 @@ $.TokenList = function (input, url_or_data, settings) {
733733
})
734734
.hide();
735735

736-
if (results.length > settings.resultsLimit) {
736+
if (settings.resultsLimit && results.length > settings.resultsLimit) {
737737
results = results.slice(0, settings.resultsLimit);
738738
}
739739

0 commit comments

Comments
 (0)