mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
Fix forEach function
This commit is contained in:
1 parent
ad76a2b637
commit
9bc87eb0e2
7 files changed
+11
-21
No files matched your search
@@ -61,9 +61,7 @@ export default class Contextmenu extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
option.contextmenu.forEach((item) => {
|
||||
this.add(item);
|
||||
});
|
||||
option.contextmenu.forEach((item) => this.add(item));
|
||||
|
||||
proxy($player, 'contextmenu', (event) => {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -160,9 +160,7 @@ export default class Control extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
option.controls.forEach((item) => {
|
||||
this.add(item);
|
||||
});
|
||||
option.controls.forEach((item) => this.add(item));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -6,9 +6,7 @@ export default class Layer extends Component {
|
||||
this.name = 'layer';
|
||||
this.$parent = art.template.$layer;
|
||||
art.once('ready', () => {
|
||||
art.option.layers.forEach(item => {
|
||||
this.add(item);
|
||||
});
|
||||
art.option.layers.forEach((item) => this.add(item));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,7 @@ export default class Plugins {
|
||||
this.add(localSubtitle);
|
||||
}
|
||||
|
||||
art.option.plugins.forEach((plugin) => {
|
||||
this.add(plugin);
|
||||
});
|
||||
art.option.plugins.forEach((plugin) => this.add(plugin));
|
||||
}
|
||||
|
||||
add(plugin) {
|
||||
|
||||
@@ -54,9 +54,7 @@ export default class Setting extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
option.settings.forEach((item) => {
|
||||
this.add(item);
|
||||
});
|
||||
option.settings.forEach((item) => this.add(item));
|
||||
});
|
||||
|
||||
art.on('blur', () => {
|
||||
|
||||
Reference in new issue
Block a user