fix: Resolve incorrect name of listener when unsubscribing (#6487)

This commit is contained in:
Vladimir Amiorkov
2018-11-02 15:33:17 +02:00
committed by GitHub
parent f54f7c3985
commit 2933a9a934

View File

@ -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) {