( resolvers: VoidFunction[] | undefined, cleanupFns: VoidFunction[], )
| 360 | } |
| 361 | |
| 362 | export function cleanupAfterLeaveAnimations( |
| 363 | resolvers: VoidFunction[] | undefined, |
| 364 | cleanupFns: VoidFunction[], |
| 365 | ): void { |
| 366 | if (resolvers) { |
| 367 | for (const fn of resolvers) { |
| 368 | fn(); |
| 369 | } |
| 370 | } |
| 371 | for (const fn of cleanupFns) { |
| 372 | fn(); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | export function clearLViewNodeAnimationResolvers(lView: LView, tNode: TNode) { |
| 377 | const nodeAnimations = getLViewLeaveAnimations(lView).get(tNode.index); |
no test coverage detected
searching dependent graphs…