update common code

This commit is contained in:
Harvey Zack committed 2018-10-12 17:16:49 +08:00
1 parent 495782f5c6
commit 11bc295663
14 files changed
+59 -44

No files matched your search

+2
View File
@@ -12,6 +12,7 @@ import Info from './info';
import Subtitle from './subtitle';
import Events from './events';
import Hotkey from './hotkey';
import Layers from './layers';
let id = 0;
export const instances = [];
@@ -77,6 +78,7 @@ class Artplayer extends Emitter {
this.info = new Info(this);
this.events = new Events(this);
this.hotkey = new Hotkey(this);
this.layers = new Layers(this);
this.id = id++;
instances.push(this);