diff --git a/packages/animations/browser/src/dsl/animation_transition_expr.ts b/packages/animations/browser/src/dsl/animation_transition_expr.ts index afad801158..a9e3aace93 100644 --- a/packages/animations/browser/src/dsl/animation_transition_expr.ts +++ b/packages/animations/browser/src/dsl/animation_transition_expr.ts @@ -65,13 +65,12 @@ function parseAnimationAlias(alias: string, errors: string[]): string|Transition } } -const TRUE_BOOLEAN_VALUES = new Set(); -TRUE_BOOLEAN_VALUES.add('true'); -TRUE_BOOLEAN_VALUES.add('1'); - -const FALSE_BOOLEAN_VALUES = new Set(); -FALSE_BOOLEAN_VALUES.add('false'); -FALSE_BOOLEAN_VALUES.add('0'); +// DO NOT REFACTOR ... keep the follow set instantiations +// with the values intact (closure compiler for some reason +// removes follow-up lines that add the values outside of +// the constructor... +const TRUE_BOOLEAN_VALUES = new Set(['true', '1']); +const FALSE_BOOLEAN_VALUES = new Set(['false', '0']); function makeLambdaFromStates(lhs: string, rhs: string): TransitionMatcherFn { const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);