Side navigation
#5609 closed bug (fixed)
Opened December 07, 2009 01:52PM UTC
Closed December 09, 2009 04:10PM UTC
ajax onreadystate abort
Reported by: | tposlins | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | ajax | Version: | 1.4a1 |
Keywords: | ajax | Cc: | |
Blocked by: | Blocking: |
Description
Starting with jQuery 1.3.2, the function "onreadystatechange" declared in the function "ajax" has an xhr.abort() call if the input parameter "isTimeout" is set. This is called on successful Ajax calls which clears out the xhr object every time. The setInterval will pass in a value equal to the number of milliseconds late the callback is called which triggers this. From the code, I think the "if" should state (isTimeout == "timeout") since that is what is being passed in in the async section below the declaration of the state change function.
Thanks,
Thomas Poslinski
Attachments (0)
Change History (1)
Changed December 09, 2009 04:10PM UTC by comment:1
component: | unfilled → ajax |
---|---|
resolution: | → fixed |
status: | new → closed |
version: | 1.3.2 → 1.4a1 |
Good catch! Just landed a fix:
http://github.com/jquery/jquery/commit/9e60fec46b2394541f75da3e333094d41069e84f
Thanks!