title: Twitter typeahead only showing some items returned by bloodhound
body: <p>I'm using Bloodhound to fetch data from the database, then twitter typeahead to display the options below a search box.</p>
  
  <p>Currently, the bloodhound part is finding the objects required, but the typeahead is not displaying them.</p>
  
  <pre><code> var artist_retriever = new Bloodhound({
      // turns input query into string of tokens to send to database.
      queryTokenizer: Bloodhound.tokenizers.whitespace,
  
      remote: {
                // URL to fetch information from
                url: "/artists?query=%QUERY",
                wildcard: '%QUERY',
                // Manipulate the array of artists returned, for display to user.
                transform: function(array_of_artists){
                              // array of artists is returned from DB.
                              // Put each artist into a readable string
                              array_of_artists = create_artist_descriptions(array_of_artists)
  
                              console.log(array_of_artists)
                              // Returns correctly:
                              // [
                              //   { artist: "Joe" },
                              //   { artist: "Bob" },
                              //   { artist: "Smith" },
                              //   { artist: "Tom" },
                              // ]
  
                              return array_of_artists
                            }
              },
  
      // turns return value into a string of results, with this 'key' before each result.
      datumTokenizer: Bloodhound.tokenizers.obj.whitespace('artist'), 
  
  
    });
  
  // display:
  
  
  
  // instantiate the typeahead UI
    // https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md
    searcher = $('.typeahead').typeahead(
      // options:
      {
        hint: false
      },
      // datasets:
      {
        // Where to get data: User the bloodhound suggestion engine:
        source: artist_retriever.ttAdapter(),
        // Which attribute of each result from the database should be shown:
        displayKey: 'artist',
        templates: {
                      notFound: new_artist_option_template(),
                      footer: new_artist_option_template()
                   }
      }
    )
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>It turns out that there's a weird bug in typeahead. It only seems to work with the "limit" attribute set to a maximum of 4. If you set "limit" to 5, the typeahead gives you nothing.</p>
  
  <pre><code>searcher = $('.typeahead').typeahead(
      // options:
      {
        hint: false
      },
      // datasets:
      {
        // Where to get data: User the bloodhound suggestion engine:
        source: artist_retriever.ttAdapter(),
        // Which attribute of each result from the database should be shown:
        displayKey: 'signature',
        limit: 4, // This can do a max of 4! Odd.
        templates: {
                      notFound: new_artist_option_template(),
                      footer: new_artist_option_template()
                   }
      }
  </code></pre>