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

This reverts commit 71b9d5539b.
This commit is contained in:
Matias Niemelä
2019-02-04 12:52:37 -05:00
parent 4dfcbc6afa
commit 52d3795336
3 changed files with 19 additions and 31 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;
}