From 3ea73658713115f18e8ad28984cb4459719275c4 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Thu, 16 Mar 2017 15:20:08 +0200 Subject: [PATCH] fix(animations): register both style's "name" and "cssName" (#3810) --- tns-core-modules/ui/core/properties/properties.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tns-core-modules/ui/core/properties/properties.ts b/tns-core-modules/ui/core/properties/properties.ts index 4c9eedba7..0ddca2223 100644 --- a/tns-core-modules/ui/core/properties/properties.ts +++ b/tns-core-modules/ui/core/properties/properties.ts @@ -570,7 +570,11 @@ export class CssAnimationProperty { const propertyName = options.name; this.name = propertyName; - CssAnimationProperty.properties[options.cssName || propertyName] = this; + CssAnimationProperty.properties[propertyName] = this; + if (options.cssName && options.cssName !== propertyName) { + CssAnimationProperty.properties[options.cssName] = this; + } + this._valueConverter = options.valueConverter; const cssName = "css:" + (options.cssName || propertyName);