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

Fix problem of FakeXMLHttpRequest via $.ajax with async:false #564

Merged
merged 2 commits into from Sep 26, 2014
Merged

Fix problem of FakeXMLHttpRequest via $.ajax with async:false #564

merged 2 commits into from Sep 26, 2014

Conversation

toshi00ysm
Copy link

add support for $.Deferred of jsXHR(ex: jqXHR.done()) with async:false

In specification of XHR, xhr fires readystatechange/load event even when synchronous flag is set.
And jQuery.ajax is depending on whether load event is fired from xhr in its callback handling.
So, it might be better that FakeXMLHttpRequest behave as same as when async:true even when async:false, I think.

(related: #510 )

yoshimura-toshihide added 2 commits September 17, 2014 18:03
add support for $.Deferred of jsXHR(ex: jqXHR.done()) with async:false
cjohansen added a commit that referenced this pull request Sep 26, 2014
Fix problem of FakeXMLHttpRequest via $.ajax with async:false
@cjohansen cjohansen merged commit 5848388 into sinonjs:master Sep 26, 2014
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