title: bloodhound resetting local data
body: <p>Im using bloodhound and trying to reset the <code>local</code> option. on my webpage I have a situation whereby If the user chooses one of two options the suggestion data will change. But I cant get the suggestions to appear when I set the local data. Below is how I create the bloodhound setting it up to use an array called 'spray':</p>
  
  <pre><code>var dataSetBloodhound = new Bloodhound({
    datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
    queryTokenizer: Bloodhound.tokenizers.whitespace,
    local: spray
  });
  </code></pre>
  
  <p>So if the user chooses spray jQuery catches it and tries to set the spray array to the local</p>
  
  <pre><code> //If spray is picked  
          if( checked == "Spray") {
              // Clear the object
              dataSetBloodhound.clear();
              // Set the local 'data' to spray
              dataSetBloodhound.local = spray;
              // Reinit the object
              dataSetBloodhound.initialize()
              // Prints out the local data.(This prints out the data of spray)
              console.log(dataSetBloodhound.local);
              //etc }
  </code></pre>
  
  <p>If the user chooses fertilizer the function is the same as above except a <code>fertilizer</code> array is passed.
  If I use on list i can get them to work but I cant seem to swap the local data of bloodhound. Yet after I <code>initialize()</code> I can <code>console.log(dataSetBloodhound.local)</code> and I can view the elements in the console but if I try and get a suggestion from the dropdown it doesnt work. Any ideas?</p>