mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21: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
@@ -3311,7 +3311,7 @@
|
||||
}));
|
||||
|
||||
option.controls.forEach(function (item) {
|
||||
_this.add(item);
|
||||
return _this.add(item);
|
||||
});
|
||||
});
|
||||
return _this;
|
||||
@@ -3508,7 +3508,7 @@
|
||||
}));
|
||||
|
||||
option.contextmenu.forEach(function (item) {
|
||||
_this.add(item);
|
||||
return _this.add(item);
|
||||
});
|
||||
proxy($player, 'contextmenu', function (event) {
|
||||
event.preventDefault();
|
||||
@@ -4102,7 +4102,7 @@
|
||||
_this.$parent = art.template.$layer;
|
||||
art.once('ready', function () {
|
||||
art.option.layers.forEach(function (item) {
|
||||
_this.add(item);
|
||||
return _this.add(item);
|
||||
});
|
||||
});
|
||||
return _this;
|
||||
@@ -4420,7 +4420,7 @@
|
||||
}));
|
||||
|
||||
option.settings.forEach(function (item) {
|
||||
_this.add(item);
|
||||
return _this.add(item);
|
||||
});
|
||||
});
|
||||
art.on('blur', function () {
|
||||
@@ -4751,7 +4751,7 @@
|
||||
}
|
||||
|
||||
art.option.plugins.forEach(function (plugin) {
|
||||
_this.add(plugin);
|
||||
return _this.add(plugin);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user