-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reliably cancel an in-flight request
The `_previousXhr` property was not reliably set previously and the current in-flight was not visible unless a new request was dispatched. The updated control flow in ca409b3 effectively allowed for the `_previousXhr` property to be removed entirely. Working with `_xhr` directly allows to abort an in-flight request without dispatching a new request. This also fixes a third bug hidden in `_finalize()` that could have erased a later in-flight request in some cases. See https://www.woltlab.com/community/thread/305578-halb-fehler-halb-wunsch/
- Loading branch information
Showing
2 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 10 additions & 13 deletions
23
wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.