revert: fix(ivy): remove query results from destroyed embedded views (#28445)

This reverts commit 5ebc0da640.
This commit is contained in:
Matias Niemelä
2019-02-05 21:07:03 -08:00
parent 5ebc0da640
commit 22d3226491
3 changed files with 18 additions and 30 deletions

View File

@ -127,8 +127,7 @@ export function isComponentDef<T>(def: DirectiveDef<T>): def is ComponentDef<T>
return (def as ComponentDef<T>).template !== null;
}
export function isLContainer(
value: RElement | RComment | LContainer | LView | StylingContext | null): boolean {
export function isLContainer(value: RElement | RComment | LContainer | StylingContext): boolean {
// Styling contexts are also arrays, but their first index contains an element node
return Array.isArray(value) && value.length === LCONTAINER_LENGTH;
}