title: Why does bloodhound.get() return undefined?
body: <p>I'm trying to use the code below with typeahead.js v 0.10</p>
  
  <pre><code>// instantiate the bloodhound suggestion engine
  var numbers = new Bloodhound({
  datumTokenizer: function(d) { return d; },
  queryTokenizer: Bloodhound.tokenizers.whitespace,
  local:  ["(A)labama","Alaska","Arizona","Arkansas"]
  });
  
  // initialize the bloodhound suggestion engine
  numbers.initialize();
  console.log(numbers.get('a'));
  </code></pre>
  
  <p>In fact I try to solve this question: <a href="https://github.com/bassjobsen/Bootstrap-3-Typeahead/issues/26" rel="nofollow">https://github.com/bassjobsen/Bootstrap-3-Typeahead/issues/26</a>
  I expected something like shown below should be possible:</p>
  
  <pre><code> $('.typeahead').typeahead(
  {
  items: 4,
  source:function(query){return numbers.get(query)}       
  });
  </code></pre>
  
  <p><strong>update</strong></p>
  
  <p>The <a href="http://twitter.github.io/typeahead.js/examples" rel="nofollow">examples</a>. use <code>ttAdapter()</code> to set the source of typeahead. 
  This function can also be used to set the <code>source</code> property (which accept an array of string or a function) for <a href="https://github.com/twitter/typeahead.js" rel="nofollow">Bootstrap-3-Typeahead</a>:</p>
  
  <pre><code>// instantiate the bloodhound suggestion engine
  var numbers = new Bloodhound({
  datumTokenizer: Bloodhound.tokenizers.whitespace,//function(d) { return d; },
  queryTokenizer: Bloodhound.tokenizers.whitespace,
  local:  ["(A)labama","Alaska","Arizona","Arkansas","Arkansas2","Barkansas"]
  });
  
  // initialize the bloodhound suggestion engine
  numbers.initialize();
  
  $('.typeahead').typeahead(
  {
  items: 4,
  source:numbers.ttAdapter()  
  });
  </code></pre>
  
  <p>bloodhound.js shows:</p>
  
  <pre><code>  ttAdapter: function ttAdapter() {
                  return _.bind(this.get, this);
              }
  </code></pre>
  
  <p>So <code>ttAdapter()</code> returns a function (get()) which can be set by source which has the query as an argument.</p>