Opened 14 years ago
Closed 13 years ago
#3984 closed bug (fixed)
XmlHttpRequest.abort() does not fire ajaxStop event
Reported by: | klaus | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | 1.4 |
Component: | ajax | Version: | 1.4a2 |
Keywords: | abort cancel | Cc: | |
Blocked by: | Blocking: |
Description
The ajaxStop event is not being fired if a request is canceled via XmlHttpRequest abort method.
var xhr = $.ajax(...); xhr.abort();
Seems to be expected behavior.
Taken from http://ui.jquery.com/bugs/ticket/3903: "Whenever this happens the variable used for the global ajax count jQuery.active should be decremented or ajaxStop will never be fired."
Change History (2)
comment:1 Changed 14 years ago by
Owner: | set to john |
---|
comment:2 Changed 13 years ago by
Milestone: | 1.3.2 → 1.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | 1.3.1 → 1.4a2 |
Note: See
TracTickets for help on using
tickets.
Works for me. http://github.com/jquery/jquery/commit/84dd82eb1a295e8671a98ebf5a854dbac63caf78