twitter/typeahead.js — pull request #777 by davidxi (2014-03-14 14:43:15+00:00)
Title: accessing array length in loop, and missing local variable declaration

Fix accessing array length in loop condition statement.

Also, add back a possible missing local variable declaration.