Skip to content

Commit 5364a9c

Browse files
exsideunderovsky
authored andcommitted
Unify way of adding class to tag
1 parent e1f136b commit 5364a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tagsinput-revisited.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
return false;
2828
}
2929

30-
$('<span>').addClass('tag').append(
30+
$('<span>', {class: 'tag'}).append(
3131
$('<span>', {class: 'tag-text'}).text(value),
3232
$('<button>', {class: 'tag-remove'}).click(function() {
3333
return $('#' + id).removeTag(encodeURI(value));

0 commit comments

Comments
 (0)