twitter/typeahead.js — pull request #190 by lamberta (2013-04-11 03:35:22+00:00)
Title: Wrap localStorage check in try/catch.

In Chrome with cookies disabled, accessing `window.localStorage` throws a DOM security error 18. This wraps the feature test up in a try/catch block so it can carry on its way, setting the methods with `utils.noop`.

Addresses issue https://github.com/twitter/typeahead.js/issues/189