Split get/set native to getDefault setNative

This commit is contained in:
Panayot Cankov
2017-03-21 14:42:53 +02:00
parent a777e16191
commit 2b28730011
60 changed files with 773 additions and 903 deletions

View File

@@ -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;
}

View File

@@ -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 ++;
}