refactor(ivy): remove TView.pipeDestroyHooks (#27955)

PR Close #27955
This commit is contained in:
Marc Laval
2019-01-07 10:38:55 +01:00
committed by Kara Erickson
parent 45880532bf
commit 996435b79a
5 changed files with 1 additions and 26 deletions

View File

@ -33,8 +33,7 @@ export function pipe(index: number, pipeName: string): any {
pipeDef = getPipeDef(pipeName, tView.pipeRegistry);
tView.data[adjustedIndex] = pipeDef;
if (pipeDef.onDestroy) {
(tView.pipeDestroyHooks || (tView.pipeDestroyHooks = [
])).push(adjustedIndex, pipeDef.onDestroy);
(tView.destroyHooks || (tView.destroyHooks = [])).push(adjustedIndex, pipeDef.onDestroy);
}
} else {
pipeDef = tView.data[adjustedIndex] as PipeDef<any>;