mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
update setting
This commit is contained in:
1 parent
3ab2e96144
commit
7d6b7f2070
5 files changed
+83
-45
No files matched your search
@@ -67,6 +67,11 @@ export default class Events {
|
||||
});
|
||||
}
|
||||
|
||||
remove(event) {
|
||||
const index = this.destroyEvents.indexOf(event);
|
||||
if (index > -1) this.destroyEvents.splice(index, 1);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
for (let index = 0; index < this.destroyEvents.length; index++) {
|
||||
this.destroyEvents[index]();
|
||||
|
||||
Reference in new issue
Block a user