twitter/typeahead.js — pull request #530 by ambahk (2013-11-22 13:44:37+00:00)
Title: Added 'matched' and 'mismatched' custom events on blur

When the input lose focus, check the text value and trigger either a matched or mismatched custom event.

* `typeahead:matched` - Triggered when the input loses focus and there is exactly one suggestion. The matching datum is passed to the event handler as an argument in addition to the name of the dataset it originated from. Autocomplete will not occur in this case.

* `typeahead:mismatched` - Triggered when the input loses focus and either there are no suggestions or more than one suggestion.