title: Cannot get Bootstrap TypeAhead to work inside key up event
body: <p>If i run typeahead alone inside doc ready it runs fine:</p>
  
  <pre><code>$('#near').typeahead({
      source: function(query, process) {
          $.ajax({
              url: '/ajax/ajaxcall.php',
              type: 'POST',
              data: 'query=' + query,
              dataType: 'JSON',
              async: true,
              success: function(data) {
                  process(data);   
              }
          });
      },
  
      minLength:3,
      items:100
      });
  </code></pre>
  
  <p>if i wrap it inside a keyup event it does not work:</p>
  
  <pre><code>$('#near').keyup(function(){
  
  console.log('keyup value is ' + $('#near').val());
  
  $('#near').typeahead({
      source: function(query, process) {
          $.ajax({
              url: '/ajax/ajaxcall.php',
              type: 'POST',
              data: 'query=' + query,
              dataType: 'JSON',
              async: true,
              success: function(data) {
                  process(data);   
              }
          });
      },
  
      minLength:3,
      items:100
      });
  });
  </code></pre>
  
  <p>My question is why does it stop working inside the event handler even though i am seeing that the event triggers and updates the value in console? Also is there a way to get it working in the context of the keyup event. eventually i want to check to see if the value is a number or string on key up and call a different typeahead ajax call depending on the answer.</p>
  
  <p>Thanks in advance</p>