update Component

This commit is contained in:
Harvey Zack committed 2023-04-19 02:47:37 +08:00
1 parent 3c8cb0e2e2
commit 90915652aa
5 files changed
+17 -27

No files matched your search

+6 -3
View File
@@ -67,9 +67,12 @@ export default class Events {
});
}
remove(event) {
const index = this.destroyEvents.indexOf(event);
if (index > -1) this.destroyEvents.splice(index, 1);
remove(destroyEvent) {
const index = this.destroyEvents.indexOf(destroyEvent);
if (index > -1) {
destroyEvent();
this.destroyEvents.splice(index, 1);
}
}
destroy() {