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

Fix animation event regression #14340

Merged
merged 2 commits into from
Apr 8, 2016

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Mar 29, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
regression fix for #14321

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:

@matsko Do you think you could take a look at this?

@matsko
Copy link
Contributor

matsko commented Apr 6, 2016

LGTM

@Narretz Narretz force-pushed the fix-animation-event-regression branch from fe61088 to d9ba9bb Compare April 7, 2016 23:34
Narretz added 2 commits April 8, 2016 15:03
…been called

The fix for removing the event callbacks on destroy introduced in
ce7f400 removed the events too early, so that the event callbacks
for the "close" phase in "leave" animations were not called.

This commit fixes the behavior so that the event callbacks are only removed during on('$destroy')
when no animation is currently active on the element. When an animation is active, the event callbacks
will be removed after all callbacks have run, and if the element has no parent (has been removed from
the DOM).

Closes angular#14321
@Narretz Narretz force-pushed the fix-animation-event-regression branch from d9ba9bb to f8e6a4b Compare April 8, 2016 13:04
@Narretz Narretz merged commit f8e6a4b into angular:master Apr 8, 2016
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.

3 participants