From 3529346c2307d25c19853ed0ca8a4d605b5432af Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Wed, 21 Dec 2016 14:13:00 +0200 Subject: [PATCH] Fix: string values read from XML are not converted to the correct type before assignment --- tns-core-modules/ui/core/properties.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/ui/core/properties.ts b/tns-core-modules/ui/core/properties.ts index 131fab1bd..76b300966 100644 --- a/tns-core-modules/ui/core/properties.ts +++ b/tns-core-modules/ui/core/properties.ts @@ -117,13 +117,13 @@ export class Property 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; } }