Refactoring: Reverted unneeded HTML option customization of bootstrap-tokenfield.js.

This commit is contained in:
Thorsten Eckel 2020-08-26 08:20:55 +02:00
parent 4696a85cd4
commit f6c2d810bc

View file

@ -254,10 +254,7 @@
var $tokenLabel = $token.find('.token-label') var $tokenLabel = $token.find('.token-label')
, $closeButton = $token.find('.close') , $closeButton = $token.find('.close')
if (this.options.html) $tokenLabel.text(attrs.label)
$tokenLabel.html(attrs.label)
else
$tokenLabel.text(attrs.label)
// Listen to events on token // Listen to events on token
$token $token
@ -998,7 +995,6 @@
$.fn.tokenfield.defaults = { $.fn.tokenfield.defaults = {
minWidth: 60, minWidth: 60,
minLength: 0, minLength: 0,
html: true,
allowEditing: true, allowEditing: true,
allowPasting: true, allowPasting: true,
limit: 0, limit: 0,