wuyuntao / jquery-autosuggest

A fork of AutoSuggest jQuery plugin writtern by Drew Wilson.
http://github.com/wuyuntao/jquery-autosuggest
118 stars 59 forks source link

fixed abortRequest() never calling request.abort() because request was never saved #14

Closed vlazzle closed 12 years ago

vlazzle commented 12 years ago

This problem was manifesting itself in the following scenario:

  1. Issue a long-running request A for query (e.g. 'The')
  2. While the request is still processing, finish typing the rest of the query, issuing a second, much shorter request B
  3. Request B comes back, suggestions are displayed
  4. Request A comes back, replacing the correct suggestions with stale suggestions not corresponding to the latest request (B).
wuyuntao commented 12 years ago

Just merged. thx