-
Notifications
You must be signed in to change notification settings - Fork 158
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
jQuery 1.x with passthrough #85
Comments
Seems bad. PR would be help. |
I'm using jQuery 1.11.3 too and unfortunately I can't switch to jQuery 2.x :( |
@trek any update on this one? |
@code0100fun do you have a PR for this one? |
I can't think of a clean way to tell when the user has an older version of jQuery without tying Pretender to jQuery in some way. As a workaround, you may be able to wrap the It looks like Any advice @trek or @mike-north ? |
@code0100fun this is what i've done: #114 |
addressed by #130 |
The app this is based on originally used an older Mirage. The npm dependencies were updated to the newer, but not the bower. It was hoped this would fix the issue by incorporating the fix for pretenderjs/pretender#85 via pretenderjs/pretender#130 as part of the move past Pretender version 0.11.0 (https://github.com/pretenderjs/pretender/blob/master/CHANGELOG.md#0110), but, surprisingly, that did *not* fix the issue. Well, this is frustrating.
I can't get passthrough to work with jQuery 1.x. The requests are sent using
$.ajax('/path').then(...)
but thethen
callbacks are never fired.Seems like the
onload
event is detected on the browserxhr
but is not supported by the 1.x jQueryxhr
module, so it is not dispatched when the response is received.I was able to get the events to fire by removing the check for
onload
and just adding both events.There is a chance that both events could be fired I'm guessing. Any other concerns I should check into before getting a PR ready?
The text was updated successfully, but these errors were encountered: