tcrosen/twitter-bootstrap-typeahead — pull request #10 by ryanlchan (2012-08-10 07:44:12+00:00)
Title: Accept array of strings for 'val' option

Made some changes which allow the 'val' parameter to accept an Array of strings to store, correlating to attributes from the initial objects. I used JSON.stringify to store objects in the data-value attribute of the items, which is a bit hackish, but in my limited testing corpus it doesn't seem to have any major bugs.

Additional tests were added to cover the new usage, but I'm not totally familiar with the bootstrap test suite so they may be incomplete.

Hope this is useful!