Fixed: There is an exception when removing a button

This commit is contained in:
Tsvetan Raikov
2016-08-17 16:09:38 +03:00
parent 3968d6fb82
commit 44a3b32fa6

View File

@ -69,6 +69,13 @@ export class Button extends common.Button {
this.style._updateTextTransform();
}
public onUnloaded() {
super.onUnloaded();
if (this._stateChangedHandler) {
this._stateChangedHandler.stop();
}
}
@PseudoClassHandler("normal", "highlighted")
_updateHandler(subscribe: boolean) {
if (subscribe) {