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

Commit 6dc8925

Browse files
committed
fix comparation onReady typeof function
1 parent 1102678 commit 6dc8925

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
@@ -488,7 +488,7 @@ $.TokenList = function (input, url_or_data, settings) {
488488
}
489489

490490
// Initialization is done
491-
if ($(input).data("settings").onReady === "function") {
491+
if (typeof($(input).data("settings").onReady) === "function") {
492492
$(input).data("settings").onReady.call();
493493
}
494494

0 commit comments

Comments
 (0)