Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2933a9a

Browse files
fix: Resolve incorrect name of listener when unsubscribing (NativeScript#6487)
1 parent f54f7c3 commit 2933a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/ui/styling/style-scope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export class CssState {
506506
this._appliedChangeMap.forEach((changes, view) => {
507507
if (changes.attributes) {
508508
changes.attributes.forEach(attribute => {
509-
view.removeEventListener("onPropertyChanged:" + attribute, this._onDynamicStateChangeHandler);
509+
view.removeEventListener(attribute + "Change", this._onDynamicStateChangeHandler);
510510
});
511511
}
512512
if (changes.pseudoClasses) {

0 commit comments

Comments
 (0)