loopj/jquery-tokeninput — pull request #350 by dmagliola (2012-06-29 11:10:31+00:00)
Title: Allow adding an "error" property to the entries to pre-populate

When pre-populating a tokenInput with entries, allow adding an "error" (boolean) property to each entry, in addition to id and "propertyToSearch".

Entries that have the error set to true, are marked with a class (by default "with_error", but overridable through settings).

------------------------

The reason I added this for myself, and I'm proposing the pull request, is for showing a tokenInput after a validation, to be able to mark "some" entries as problematic (in my case, painting them red)

I thought this might be a useful addition.

Thanks!
Daniel