mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Optimized DependencyObject setValue performance (#2260)
* Cached all properties from metadata as fields on Property ResetValue does not remove entry but only reset value for the given ValueSource (Local by default) Optimized setValueInternal performance * Removed TS dependency * Fix tslint
This commit is contained in:
@ -624,7 +624,7 @@ export class ViewStyler implements style.Styler {
|
||||
}
|
||||
|
||||
private static resetNativeLayoutParamsProperty(view: View, nativeValue: any): void {
|
||||
ViewStyler.setNativeLayoutParamsProperty(view, style.nativeLayoutParamsProperty.metadata.defaultValue)
|
||||
ViewStyler.setNativeLayoutParamsProperty(view, style.nativeLayoutParamsProperty.defaultValue)
|
||||
}
|
||||
|
||||
private static setPaddingProperty(view: View, newValue: Thickness) {
|
||||
|
Reference in New Issue
Block a user