refactor(ivy): remove dependency on global state from isCreationMode (#31959)

PR Close #31959
This commit is contained in:
Pawel Kozlowski
2019-08-02 14:25:52 +02:00
committed by Alex Rickabaugh
parent 48a3741d5a
commit 9106271f2c
6 changed files with 17 additions and 17 deletions

View File

@ -15,7 +15,7 @@ import {ComponentDef, DirectiveDef} from './interfaces/definition';
import {TElementNode, TNode, TViewNode} from './interfaces/node';
import {BINDING_INDEX, CONTEXT, DECLARATION_VIEW, FLAGS, InitPhaseState, LView, LViewFlags, OpaqueViewState, TVIEW} from './interfaces/view';
import {resetAllStylingState, resetStylingState} from './styling_next/state';
import {resetPreOrderHookFlags} from './util/view_utils';
import {isCreationMode, resetPreOrderHookFlags} from './util/view_utils';
@ -334,12 +334,6 @@ export function setIsParent(): void {
isParent = true;
}
/** Checks whether a given view is in creation mode */
export function isCreationMode(view: LView = lView): boolean {
return (view[FLAGS] & LViewFlags.CreationMode) === LViewFlags.CreationMode;
}
/**
* State of the current view being processed.
*