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 wrong invocation of dispatchEvent method for passthrough requests. #78

Closed

Conversation

simonihmig
Copy link
Contributor

This fixes a bug where event listeners added via addEventListener() to a passthrough request were not being called.

…. This fixes event listeners added via addEventListener() not being called.
@simonihmig simonihmig changed the title Fix wrong invocation af dispatchEvent method for passthrough requests. Fix wrong invocation of dispatchEvent method for passthrough requests. Jun 23, 2015
@stefanpenner
Copy link
Contributor

this will need a test

@samselikoff
Copy link
Contributor

@simonihmig this still relevant?

@simonihmig
Copy link
Contributor Author

I think so, the signature for dispatchEvent expects a single argument, the event object, but it is called as fakeXHR.dispatchEvent(evt, e);

I didn't have the time to write a test for getting this merged though, I will try to do it the next days...

@bantic
Copy link
Member

bantic commented Oct 5, 2015

Thanks for pointing this out. This was fixed in #117.

@bantic bantic closed this Oct 5, 2015
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.

4 participants