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

fix(ngAnimate): support removing classes from SVG elements when using jQuery #8893

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Sep 2, 2014

Without this CL, ngShowHide will not work without the use of monkeypatched
fixes for jQuery such as https://github.com/kbwood/svg 's jquery-svgdom.js
script.

/CC @matsko / @IgorMinar --- as noted above, people can make this work by including third party
scripts, but I thought since this is technically a regression I would write a patch anyways and
see what people think.

So, the main thing is that this is not reusing the existing jqLiteHasClass method, because jqLite
is not exported unless jQuery is not found. We could fix this to support code reuse, if we want
to fix this at all.

There is one other use of .hasClass() in ngAnimate that I can see, so it's likely that another
SVG scenario is broken in jQuery by default, but I haven't investigated to see what that other
scenario is.

Balls in your court, do you think we should fix it or just defer the work to third party code
like jquery-svgdom

Closes #8872

@caitp caitp added this to the 1.3.0-rc.1 milestone Sep 2, 2014
… jQuery

Without this CL, ngShowHide will not work without the use of monkeypatched fixes for jQuery such as
https://github.com/kbwood/svg 's jquery-svgdom.js script.

Closes angular#8872
@matsko
Copy link
Contributor

matsko commented Sep 5, 2014

LGTM please merge.

@caitp caitp closed this in b3b6721 Sep 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngShow does not show the svg element correctly when using jquery 2.1.1 and ngAnimate at the same time
3 participants