forEach => for

This commit is contained in:
zhw2590582 committed 2022-01-07 22:11:48 +08:00
1 parent 99f5694100
commit 455e2189a7
18 files changed
+159 -103

No files matched your search

+3 -3
View File
@@ -21,11 +21,11 @@ export default function eventInit(art) {
art.fullscreen = !art.fullscreen;
});
config.events.forEach((eventName) => {
proxy($video, eventName, (event) => {
for (let index = 0; index < config.events.length; index++) {
proxy($video, config.events[index], (event) => {
art.emit(`video:${event.type}`, event);
});
});
}
// art.on('video:abort', () => {