mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fixed: There is an exception when removing a button
This commit is contained in:
@ -69,6 +69,13 @@ export class Button extends common.Button {
|
|||||||
this.style._updateTextTransform();
|
this.style._updateTextTransform();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public onUnloaded() {
|
||||||
|
super.onUnloaded();
|
||||||
|
if (this._stateChangedHandler) {
|
||||||
|
this._stateChangedHandler.stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@PseudoClassHandler("normal", "highlighted")
|
@PseudoClassHandler("normal", "highlighted")
|
||||||
_updateHandler(subscribe: boolean) {
|
_updateHandler(subscribe: boolean) {
|
||||||
if (subscribe) {
|
if (subscribe) {
|
||||||
|
Reference in New Issue
Block a user