Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngAnimate): do not use jQuery class API #10329

Closed
wants to merge 2 commits into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Dec 4, 2014

jQeury's class API causes problems with SVG elements --- using jqLite in all cases
prevents issues.

/cc @matsko please review

Closes #10024

@googlebot
Copy link

CLAs look good, thanks!

jQeury's class API causes problems with SVG elements --- using jqLite in all cases
prevents issues.

Closes angular#10024
This makes it easy to use jqLite's nicer class API (compared to jQuery) in modules
like ngAnimate.
@@ -473,11 +473,12 @@ angular.module('ngAnimate', ['ng'])
function isMatchingElement(elm1, elm2) {
return extractElementNode(elm1) == extractElementNode(elm2);
}

var $$jqLite;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

PTAL --- I've added a commit which exposes jqLite via a private service.

Unfortunately, because of the structure of ngAnimate, not every function has access to it. I found it easier to just put a variable here, but I don't see why these functions need to be outside of the decorator, so it's easy to move them too.

What would you prefer?

@caitp caitp closed this in 40a537c Dec 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animations are broken for SVG sub-elements if jQuery is present
4 participants