(lView: LView, onDestroyCallback: () => void)
| 299 | * Removes previously registered LView-specific destroy callback. |
| 300 | */ |
| 301 | export function removeLViewOnDestroy(lView: LView, onDestroyCallback: () => void) { |
| 302 | if (lView[ON_DESTROY_HOOKS] === null) return; |
| 303 | |
| 304 | const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback); |
| 305 | if (destroyCBIdx !== -1) { |
| 306 | lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1); |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | /** |
| 311 | * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of |
no test coverage detected
searching dependent graphs…