Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fire progress events when deliberately aborting xhrs #1524

Conversation

davemevans
Copy link
Contributor

xhr.abort will trigger onprogress which we don't want when deliberately aborting inflight requests - set it to undefined so it's not called. Already done for onloadend and onerror.

Caused an infrequent race condition if a higher level app was listening on for metrics changes.

@dsparacio dsparacio merged commit 8884ddf into Dash-Industry-Forum:development Aug 5, 2016
@davemevans davemevans deleted the DontFireProgressEventsWhenAbortingXHR branch August 5, 2016 20:36
@davemevans davemevans added this to the v2.3.0 milestone Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants