Fix toggle-component (#4484)

This commit is contained in:
jiaxin.lai
2019-05-23 11:47:48 +08:00
committed by pandamicro
parent c02cca1ef4
commit 4d9995af00
+1 -1
View File
@@ -142,7 +142,7 @@ export class ToggleComponent extends ButtonComponent {
}
public onDisable () {
super.onEnable();
super.onDisable();
if (!CC_EDITOR) {
this._unregisterToggleEvent();
}