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

refactor(ngView): remove previousElement bookkeeping #9355

Closed
wants to merge 1 commit into from

Conversation

IgorMinar
Copy link
Contributor

it's unnecessary and inconsistent (because finishing animations reset we see situations
where not previousElement is not always removed and more than one leave animation is going on at the same time).

Closes #7606

it's unnecessary and inconsistent (because finishing animations reset  we see situations
where not previousElement is not always removed and more than one leave animation is going on at the same time).

Closes angular#7606
Closes angular#9355
@IgorMinar
Copy link
Contributor Author

we should keep the cleanup, but do it similarly as we do in ngSwitch:

for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {
$animate.cancel(previousLeaveAnimations[i]);
}

@IgorMinar IgorMinar assigned IgorMinar and unassigned matsko Oct 1, 2014
@IgorMinar IgorMinar mentioned this pull request Oct 1, 2014
IgorMinar added a commit to IgorMinar/angular.js that referenced this pull request Oct 1, 2014
…ion occurs at a time

the tracking depended on a local flag variable, which was susceptible to corruption due to
race conditions.

Closes angular#9355
Closes angular#7606
@IgorMinar
Copy link
Contributor Author

closed in favor of #9374 9374

@IgorMinar IgorMinar closed this Oct 1, 2014
IgorMinar added a commit to IgorMinar/angular.js that referenced this pull request Oct 1, 2014
…ion occurs at a time

the tracking depended on a local flag variable, which was susceptible to corruption due to
race conditions.

Closes angular#9355
Closes angular#7606
Closes angular#9374
IgorMinar added a commit to IgorMinar/angular.js that referenced this pull request Oct 1, 2014
…ion occurs at a time

the tracking depended on a local flag variable, which was susceptible to corruption due to
race conditions.

using promises ensures that the previousLeaveAnimation is nulled out only if it hasn't been
canceled yet.

Closes angular#9355
Closes angular#7606
Closes angular#9374
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.

ngView cleanup order
4 participants