添加ready事件

This commit is contained in:
Harvey committed 2019-10-10 11:33:24 +08:00
1 parent d43a71b931
commit a6816d68fa
10 files changed
+42 -51

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ export default class Layers {
this.id = 0;
this.art = art;
this.add = this.add.bind(this);
this.art.once('video:canplay', () => {
this.art.on('ready', () => {
this.art.option.layers.forEach(item => {
this.add(item);
});