fix(animations): properly cleanup query artificats when animation construction fails
This commit is contained in:

committed by
Jason Aden

parent
71ee0c5b03
commit
858dea98e5
@ -21,6 +21,7 @@ export interface AnimationTransitionInstruction extends AnimationEngineInstructi
|
||||
queriedElements: any[];
|
||||
preStyleProps: Map<any, {[prop: string]: boolean}>;
|
||||
postStyleProps: Map<any, {[prop: string]: boolean}>;
|
||||
errors?: any[];
|
||||
}
|
||||
|
||||
export function createTransitionInstruction(
|
||||
@ -28,7 +29,8 @@ export function createTransitionInstruction(
|
||||
isRemovalTransition: boolean, fromStyles: ɵStyleData, toStyles: ɵStyleData,
|
||||
timelines: AnimationTimelineInstruction[], queriedElements: any[],
|
||||
preStyleProps: Map<any, {[prop: string]: boolean}>,
|
||||
postStyleProps: Map<any, {[prop: string]: boolean}>): AnimationTransitionInstruction {
|
||||
postStyleProps: Map<any, {[prop: string]: boolean}>,
|
||||
errors?: any[]): AnimationTransitionInstruction {
|
||||
return {
|
||||
type: AnimationTransitionInstructionType.TransitionAnimation,
|
||||
element,
|
||||
@ -41,6 +43,7 @@ export function createTransitionInstruction(
|
||||
timelines,
|
||||
queriedElements,
|
||||
preStyleProps,
|
||||
postStyleProps
|
||||
postStyleProps,
|
||||
errors
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user