Mean-CJ/jquery-tokeninput — pull request #1 by martar (2012-04-28 13:50:07+00:00)
Title: preventDuplicates when allowing custom tags

what happends:
when user are allowed to add custom tags and the tokenValue is set by them (not using default 'id'), preventDuplicates behaviour doesn't work.

why it happens:
hen adding a custom tag, a item[settings.tokenValue] is filled (line 280), but in line 508, where the condition for preventDuplicates is evaluated, it uses item.id instead of item[settings.tokenValue], to compare the values

fix:
martar/jquery-tokeninput@c88c9d8c455773a78d69ac8452b0569d607a539e