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 jQuery 1.x never calling complete #105

Closed
wants to merge 1 commit into from

Conversation

code0100fun
Copy link

Fixes #85.

Tried to find a way to check for this case without referring to jQuery directly but it can't really be avoided.

Tests should ideally be ran against jQuery 1.x and 2.x but that is going to require some project restructuring.

Two of the async/synchronous tests fail with jQuery 1.x for some reason. It seems like a difference in the way 1.x interacts with XMLHttpRequest. I think it may need to be addressed upstream (in FakeXMLHttpRequest). Any ideas @trek or @mike-north?

@trek
Copy link
Member

trek commented Aug 10, 2015

Can you show some of the other strategies you tried? This add jQuery as a dependency, when there isn't a reason to.

@@ -7,6 +7,7 @@ var appearsBrowserified = typeof self !== 'undefined' &&

var RouteRecognizer = appearsBrowserified ? require('route-recognizer') : self.RouteRecognizer;
var FakeXMLHttpRequest = appearsBrowserified ? require('fake-xml-http-request') : self.FakeXMLHttpRequest;
var jQuery = appearsBrowserified ? require('jquery') : self.jQuery;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels wrong for projects that don't have jQuery as a dependency.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

@trek trek closed this Aug 27, 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.

3 participants