From 3c2d5c3bfed7c7771afaa4934418409073020b52 Mon Sep 17 00:00:00 2001 From: VladimirAmiorkov Date: Thu, 1 Nov 2018 16:28:26 +0200 Subject: [PATCH] fix: Resolve incorrect name of listener when unsubscribing --- 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 8e0df7dd14..8f3cf607c9 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) {