mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
add lazyload
This commit is contained in:
1 parent
8b6258c4e5
commit
a26afec5ac
4 files changed
+68
-18
No files matched your search
+2
-7
@@ -11,14 +11,9 @@ export default class Events {
|
||||
}
|
||||
|
||||
target.addEventListener(name, callback, option);
|
||||
|
||||
const destroy = () => {
|
||||
this.destroyEvents.push(() => {
|
||||
target.removeEventListener(name, callback, option);
|
||||
};
|
||||
|
||||
this.destroyEvents.push(destroy);
|
||||
|
||||
return destroy;
|
||||
});
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
||||
Reference in new issue
Block a user