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

Commit a182643

Browse files
committed
Simplify conditional expression.
1 parent b5f827c commit a182643

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
@@ -600,7 +600,7 @@
600600
// Inner function to a token to the list
601601
function insert_token(item) {
602602
var $this_token = $($(input).data("settings").tokenFormatter(item));
603-
var readonly = item.readonly === true ? true : false;
603+
var readonly = item.readonly === true;
604604

605605
if(readonly) $this_token.addClass($(input).data("settings").classes.tokenReadOnly);
606606

0 commit comments

Comments
 (0)