mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
add theme
This commit is contained in:
1 parent
ca0c67499b
commit
e8e8f7e8e7
9 files changed
+66
-12
No files matched your search
+3
-3
@@ -6,10 +6,10 @@ export default class Events {
|
||||
this.init();
|
||||
}
|
||||
|
||||
proxy(target, name, callback) {
|
||||
target.addEventListener(name, callback);
|
||||
proxy(target, name, callback, option = {}) {
|
||||
target.addEventListener(name, callback, option);
|
||||
this.destroyEvents.push(() => {
|
||||
target.removeEventListener(name, callback);
|
||||
target.removeEventListener(name, callback, option);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user