twitter/bootstrap — pull request #6938 by richardkiss (2013-02-15 00:45:38+00:00)
Title: Use .data instead of .attr in typeahead for more flexibility.

Typeahead queries that correspond to arbitrary JavaScript objects cannot be easily attached to the HTML DOM objects using .attr; changing this to .data solves this.