This commit is contained in:
Harvey Zack committed 2018-10-17 20:35:31 +08:00
1 parent d276c22f9c
commit 5f6febce42
6 files changed
+65 -22

No files matched your search

+7 -3
View File
@@ -78,9 +78,13 @@ class Artplayer extends Emitter {
init() {
this.focus = false;
this.playing = false;
this.refs = {
$container: this.option.container
};
this.refs = {};
if (this.option.container instanceof Element) {
this.refs.$container = this.option.container;
} else {
this.refs.$container = document.querySelector(this.option.container);
}
this.template = new Template(this);
this.i18n = new I18n(this);