loopj/jquery-tokeninput — pull request #655 by Maddock- (2014-04-03 23:03:10+00:00)
Title: Fix bug with selected_token_index inconsistency

The selected_token_index wasn't being updated when a duplicate token was found, causing bug #604 when the selected_token_index was later relied upon for token deletion. Added a line into the select_token method, to update the index every time a token is manually selected.

https://github.com/loopj/jquery-tokeninput/issues/604