Ticket #6904 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 4 years ago by Scott González

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:2 Changed 4 years ago by Scott González

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

Changeset: a1ab9678e9bba6b20989104040bc31b782094335

comment:3 Changed 4 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.10
Note: See TracTickets for help on using tickets.