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

fix(ngSwitch): avoid removing DOM nodes twice within watch operation #8843

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Aug 29, 2014

Closes #8662

var i, ii, promise;
for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {
promise = previousLeaveAnimations[i];
if (promise) {
Copy link
Contributor

Choose a reason for hiding this comment

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

either remove this check or assign null instead of using splice in the callback. both don't make sense

@matsko
Copy link
Contributor Author

matsko commented Aug 29, 2014

Landed as c9b0bfe

@matsko matsko closed this Aug 29, 2014
@matsko matsko deleted the fix_ng_switch branch August 29, 2014 19:59
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.

ngSwitch removes DOM elements twice
3 participants