title: How to use Bloodhound Suggestion Engine? (Multi property objects being passed locally)
body: <p>So I have an object passed that looks like this:</p>
  
  <pre><code>[{id: 1, name: 'Project A', type: 'C'}, {id: 2, name: 'Project B', type: 'A'},]
  </code></pre>
  
  <p>And I am trying to pass it through the Bloodhound Engine like so:</p>
  
  <pre><code>    var mySource = new Bloodhound({
      identify: function (obj) { return obj.id; },
      queryTokenizer: Bloodhound.tokenizers.whitespace,
      datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
      local: datasource
  });
  </code></pre>
  
  <p>To be used by typeahead.js like so:</p>
  
  <pre><code>$(control)
      .typeahead({
              hint: true,
              highlight: true,
              minLength: 0
          },
          {
              source: mySource
          });
  </code></pre>
  
  <p>But it simply never works. I'm not sure what I am doing wrong. </p>
  
  <p>I just want name to be searchable. 
  The ID and type are being passed for <code>.on('typeahead:autocomplete')</code> at a later time. </p>
  
  <hr>
  
  <p>EDIT:
  There are no errors in the console, and putting <code>console.log(mySource);</code> right after the bloodhound object creation produces a bloodhound object: </p>
  
  <p><a href="https://i.stack.imgur.com/KLA6x.png" rel="nofollow"><img src="https://i.stack.imgur.com/KLA6x.png" alt="Bloodhound Result"></a></p>