Skip to main content

Search and Top Navigation

#6904 closed bug (fixed)

Opened January 27, 2011 04:15PM UTC

Closed January 27, 2011 07:51PM UTC

Last modified January 27, 2011 07:51PM UTC

Autocomplete: Race condition handling means

Reported by: jamey Owned by:
Priority: minor Milestone: 1.8.10
Component: ui.autocomplete Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (3)

Changed January 27, 2011 07:51PM UTC by Scott González comment:1

resolution: → fixed
status: newclosed

Autocomplete: Fixed handling of race conditions when using jQuery 1.3.2. Fixes #6904 - Autocomplete: Race condition handling means.

(cherry picked from commit a1ab9678e9bba6b20989104040bc31b782094335)

Changeset: 6b9b513e77deebe33bf8c81268a587c1f022556f

Changed January 27, 2011 07:51PM UTC by Scott González comment:2

Autocomplete: Fixed handling of race conditions when using jQuery 1.3.2. Fixes #6904 - Autocomplete: Race condition handling means.

Changeset: a1ab9678e9bba6b20989104040bc31b782094335

Changed January 27, 2011 07:51PM UTC by scottgonzalez comment:3

milestone: 1.91.8.10