loopj/jquery-tokeninput — pull request #421 by vishl (2012-11-13 04:32:58+00:00)
Title: reset selected item when no results or searching

Fixes a bug where the selected item was not being reset.

To recreate: type a letter that triggers at least one result, then continue typing till there are no results, then hit enter. This causes an exception.