Merge pull request #3341 from NativeScript/padding

Fix: string values read from XML are not converted to the correct typ…
This commit is contained in:
Rossen Hristov
2016-12-21 14:16:25 +02:00
committed by GitHub

View File

@ -117,13 +117,13 @@ export class Property<T extends ViewBase, U> implements PropertyDescriptor {
delete this[defaultValueKey];
}
} else {
this[key] = value;
this[key] = unboxedValue;
if (setNativeValue) {
if (!(defaultValueKey in this)) {
this[defaultValueKey] = this[native];
}
this[native] = value;
this[native] = unboxedValue;
}
}