From 2933a9a9340eb40a612b29e40b4e307d9fd4ab2e Mon Sep 17 00:00:00 2001 From: Vladimir Amiorkov Date: Fri, 2 Nov 2018 15:33:17 +0200 Subject: [PATCH] fix: Resolve incorrect name of listener when unsubscribing (#6487) --- tns-core-modules/ui/styling/style-scope.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/styling/style-scope.ts b/tns-core-modules/ui/styling/style-scope.ts index 8e0df7dd1..8f3cf607c 100644 --- a/tns-core-modules/ui/styling/style-scope.ts +++ b/tns-core-modules/ui/styling/style-scope.ts @@ -506,7 +506,7 @@ export class CssState { this._appliedChangeMap.forEach((changes, view) => { if (changes.attributes) { changes.attributes.forEach(attribute => { - view.removeEventListener("onPropertyChanged:" + attribute, this._onDynamicStateChangeHandler); + view.removeEventListener(attribute + "Change", this._onDynamicStateChangeHandler); }); } if (changes.pseudoClasses) {