twitter/bootstrap — pull request #5063 by michaelcox (2012-09-10 21:28:30+00:00)
Title: Fixes #2043: allows minLength of zero to enable show all for typeahead

Allows you to set a minLength of 0 for typeahead, in order to show all items in the list. For example, this allows you to show all items up front by binding to the focus of the control. This seems simpler and more flexible than a new option such as `showAll` or `focusShow` as suggested in other tickets.

Specifically, this also enables the technique @fat suggested in #3941:

```javascript
$input.on('focus', $input.typeahead.bind($input, 'lookup')));
```