diff --git a/packages/core/ui/styling/style-scope.ts b/packages/core/ui/styling/style-scope.ts index 55ea9ff34..20303ffa9 100644 --- a/packages/core/ui/styling/style-scope.ts +++ b/packages/core/ui/styling/style-scope.ts @@ -387,7 +387,7 @@ if (application.hasLaunched()) { export class CssState { static emptyChangeMap: Readonly> = Object.freeze(new Map()); - static emptyPropertyBag: Readonly> = Object.freeze({}); + static emptyPropertyBag: Record = {}; static emptyAnimationArray: ReadonlyArray = Object.freeze([]); static emptyMatch: Readonly> = { selectors: [], @@ -399,7 +399,7 @@ export class CssState { _onDynamicStateChangeHandler: () => void; _appliedChangeMap: Readonly>; - _appliedPropertyValues: Record; + private _appliedPropertyValues: Record = CssState.emptyPropertyBag; _appliedAnimations: ReadonlyArray; _appliedSelectorsVersion: number; @@ -664,7 +664,6 @@ export class CssState { } } CssState.prototype._appliedChangeMap = CssState.emptyChangeMap; -CssState.prototype._appliedPropertyValues = CssState.emptyPropertyBag; CssState.prototype._appliedAnimations = CssState.emptyAnimationArray; CssState.prototype._matchInvalid = true;