Skip to content

Commit

Permalink
refactor(animations): use full ngDevMode check in animatable prop val…
Browse files Browse the repository at this point in the history
…idation (#45570)

in the `validateAnimatableStyleProperty` function use the more complete
check for the ngDevMode as it seems to be the preferred version
(see: #45212 (comment))

PR Close #45570
  • Loading branch information
dario-piotrowicz authored and thePunderWoman committed Apr 11, 2022
1 parent a6fa37b commit 9572bb2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ export class WebAnimationsDriver implements AnimationDriver {

validateAnimatableStyleProperty(prop: string): boolean {
// Perform actual validation in dev mode only, in prod mode this check is a noop.
if (ngDevMode) {
if (typeof ngDevMode === 'undefined' || ngDevMode) {
const cssProp = camelCaseToDashCase(prop);
return validateWebAnimatableStyleProperty(cssProp);
}
Expand Down

0 comments on commit 9572bb2

Please sign in to comment.