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

fix(ngAnimate): ensure that orphaned elements do not throw errors when animated #12338

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Jul 13, 2015

This fix ensures that for both $animateCss and $animate capture the error
when an animation takes place where the element is removed from the
parent element sometime before or during the preparation stages of the
animation.

Closes #11975

matsko added a commit to matsko/angular.js that referenced this pull request Jul 13, 2015
…n animated

This fix ensures that for both `$animateCss` and `$animate` capture the error
when an animation takes place where the element is removed from the
parent element sometime before or during the preparation stages of the
animation.

Closes angular#11975
Closes angular#12338
@matsko matsko added this to the 1.4.3 milestone Jul 14, 2015
…n animated

This fix ensures that for both `$animateCss` and `$animate` capture the error
when an animation takes place where the element is removed from the
parent element sometime before or during the preparation stages of the
animation.

Closes angular#11975
Closes angular#12338
@@ -51,6 +51,43 @@ describe("ngAnimate $animateCss", function() {
describe('when active', function() {
if (!browserSupportsCssAnimations()) return;

it("should silently quit the animation and not throw when an element is not attached to a parent during preparation",
Copy link
Member

Choose a reason for hiding this comment

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

when an element has no parent removes the potential confusion of a double negative.

@matsko matsko closed this in e4aeae0 Jul 14, 2015
netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
…n animated

This fix ensures that both `$animateCss` and `$animate` swallow the error
when an animation takes place in the sitation that the element is removed
from the parent element sometime before or during the preparation stages of the
animation.

Closes angular#11975
Closes angular#12338
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 should not cancel parent animations
3 participants