( resolvers: VoidFunction[] | undefined, cleanupFns: VoidFunction[], )
| 415 | } |
| 416 | |
| 417 | export function cleanupAfterLeaveAnimations( |
| 418 | resolvers: VoidFunction[] | undefined, |
| 419 | cleanupFns: VoidFunction[], |
| 420 | ): void { |
| 421 | if (resolvers) { |
| 422 | for (const fn of resolvers) { |
| 423 | fn(); |
| 424 | } |
| 425 | } |
| 426 | for (const fn of cleanupFns) { |
| 427 | fn(); |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | export function clearLViewNodeAnimationResolvers(lView: LView, tNode: TNode) { |
| 432 | const nodeAnimations = getLViewLeaveAnimations(lView).get(tNode.index); |
no test coverage detected