mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Split get/set native to getDefault setNative
This commit is contained in:
@@ -285,18 +285,18 @@ class TestView extends Layout {
|
||||
this.setMeasuredDimension(100, 100);
|
||||
}
|
||||
|
||||
get [customCssProperty.native](): string {
|
||||
[customCssProperty.getDefault](): string {
|
||||
return "customCssPropertyDefaultValue";
|
||||
}
|
||||
set [customCssProperty.native](value: string) {
|
||||
[customCssProperty.setNative](value: string) {
|
||||
this.cssPropCounter++;
|
||||
this.cssPropNativeValue = value;
|
||||
}
|
||||
|
||||
get [customViewProperty.native](): string {
|
||||
[customViewProperty.getDefault](): string {
|
||||
return "customViewPropertyDefaultValue";
|
||||
}
|
||||
set [customViewProperty.native](value: string) {
|
||||
[customViewProperty.setNative](value: string) {
|
||||
this.viewPropCounter++;
|
||||
this.viewPropNativeValue = value;
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ global.moduleMerge(commonTests, exports);
|
||||
class MyGrid extends grid.GridLayout {
|
||||
public backgroundSetterCount: number = 0;
|
||||
|
||||
get [view.backgroundInternalProperty.native](): any {
|
||||
[view.backgroundInternalProperty.getDefault](): any {
|
||||
return null;
|
||||
}
|
||||
set [view.backgroundInternalProperty.native](value: any) {
|
||||
[view.backgroundInternalProperty.setNative](value: any) {
|
||||
this.backgroundSetterCount ++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user