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

Changed the JQuery detection #222

Closed
wants to merge 3 commits into from

Conversation

priandsf
Copy link
Contributor

In our application, we need to force Angular to use jqLite while jQuery is loaded. The current detection mechanism is checking if jQuery is loaded, but not if it is actually used.
This pull request is checking if Angular.element is effectively jQuery by checking if angular.element.fn.jquery is defined, meaning that jQuery is the library used by Angular.

@priandsf
Copy link
Contributor Author

@dhilt Hello Denis - Are you willing to merge these pull requests or do you have any concern with them?

@dhilt
Copy link
Member

dhilt commented Jun 17, 2019

@priandsf Sorry, I haven't been here for 1 week...

@priandsf
Copy link
Contributor Author

priandsf commented Jun 17, 2019

@dhilt Not a problem - I'll be out soon as well :-)
The Jquery detection is pushed as PR#222 (55f627c), from this branch: https://github.com/priandsf/ui-scroll/tree/jquery-detection
The $digest fixes are only in PR#221

@dhilt
Copy link
Member

dhilt commented Jun 19, 2019

@priandsf I cherry-picked your commit and released angular-ui-scroll v1.7.4 with only jqLite/jQuery stuff. Could you please check if it does work for you? And let's continue optimization things in #221.

@dhilt dhilt closed this Jun 19, 2019
@priandsf
Copy link
Contributor Author

Thanks @dhilt I tested it and it works!

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.

2 participants