title: clearTimeout not working in javascript autocomplete script
body: <p>I am using the following code as part of an autocomplete script to avoid hammering the server with every keystroke:</p>
  
  <pre><code>var that = this;
  
  textInput.bind("keyup", function() {
  
      clearTimeout(that.timer);
  
      that.timer = setTimeout (that.doStuff(), 2000);
  
  });
  </code></pre>
  
  <p>Unfortunately, this does not clear the old timers.  They still all execute.</p>
  
  <p>Does anyone know what I'm missing?</p>
  
  <p>Thanks!  </p>