mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
Merge branch 'faster_style_scope' of github.com:Akylas/NativeScript
# Conflicts: # packages/core/ui/styling/style-scope.ts
This commit is contained in:
@ -387,7 +387,7 @@ if (application.hasLaunched()) {
|
||||
|
||||
export class CssState {
|
||||
static emptyChangeMap: Readonly<ChangeMap<ViewBase>> = Object.freeze(new Map());
|
||||
static emptyPropertyBag: Readonly<Record<string, unknown>> = Object.freeze({});
|
||||
static emptyPropertyBag: Record<string, unknown> = {};
|
||||
static emptyAnimationArray: ReadonlyArray<kam.KeyframeAnimation> = Object.freeze([]);
|
||||
static emptyMatch: Readonly<SelectorsMatch<ViewBase>> = {
|
||||
selectors: [],
|
||||
@ -399,7 +399,7 @@ export class CssState {
|
||||
|
||||
_onDynamicStateChangeHandler: () => void;
|
||||
_appliedChangeMap: Readonly<ChangeMap<ViewBase>>;
|
||||
_appliedPropertyValues: Record<string, unknown>;
|
||||
private _appliedPropertyValues: Record<string, unknown> = CssState.emptyPropertyBag;
|
||||
_appliedAnimations: ReadonlyArray<kam.KeyframeAnimation>;
|
||||
_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;
|
||||
|
||||
|
Reference in New Issue
Block a user