Autocomplete: Race condition handling means
|Reported by:||jamey||Owned by:|
I tried the remote data source example for Autocomplete but it would never display the list.
(16:02:53) Scott González: the race condition handling for xhr (16:03:34) Scott González: yeah, looks like the logic is wrong (16:03:44) Scott González: try moving self.xhr = null inside the if (16:04:08) Scott González: if the callback is from an old request, we want to ignore it (16:04:25) Scott González: but that means we should only clear out self.xhr when we handle the most recent request
So, I tried moving "self.xhr = null" inside the if (line 263) but outputting xhr and self.xhr before the if statement revealed that xhr is always null at that point regardless.