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

Animation Fixes #12881

Closed
wants to merge 2 commits into from
Closed

Animation Fixes #12881

wants to merge 2 commits into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Sep 17, 2015

Closes #12874
Closes #12872

Relying on the body node to be present right at injection has
caused issues with unit testing as well as some animations on
the body element. Reverting this patch fixes these issues.

Closes angular#12874
@matsko matsko added this to the 1.4.7 milestone Sep 17, 2015
@matsko matsko changed the title revert: chore(core): introduce $$body service Animation Fixes Sep 18, 2015
Prior to this fix anchoring would allow for a container to be a document
node or something higher beyond the body tag. This patch makes it fall
back to body incase the rootElement node exists as a parent ancestor.

Closes angular#12872
var rootBodyElement = jqLite(
// this is to avoid using something that sites outside of the body
// we also special case the doc fragement case because our unit test code
// appens the $rootElement to the body after the app has been bootstrapped
Copy link
Contributor

Choose a reason for hiding this comment

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

appens -> appends

@petebacondarwin
Copy link
Contributor

Great! I am all for removing private undocumented services.
I see that this is supposed to fix animations not working when ng-view is placed on the body.
Can we have a test to show that this fixes that?

Other than that LGTM

@gkalpak
Copy link
Member

gkalpak commented Sep 22, 2015

Am I the only one that finds it weird when people are trying to animate multiple <body> elements in and out ?

@matsko
Copy link
Contributor Author

matsko commented Sep 22, 2015

Landed as 240d589

I promised @petebacondarwin that I would create a test in a follow-up commit that tests against the <body ng-view> issue.

@matsko matsko closed this Sep 22, 2015
@matsko matsko deleted the revert_body branch September 22, 2015 19:52
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.

5 participants