优化整体结构

This commit is contained in:
Harvey Zack committed 2019-04-30 13:06:24 +08:00
1 parent 9f9cb0e036
commit 487e865017
34 files changed
+505 -427

No files matched your search

+6
View File
@@ -19,6 +19,7 @@ import Layers from './layers';
import Loading from './loading';
import Notice from './notice';
import Mask from './mask';
import Icons from './icons';
import Setting from './setting';
import Storage from './storage';
import Plugins from './plugins';
@@ -62,6 +63,10 @@ class Artplayer extends Emitter {
return validator;
}
static get kindOf() {
return validator.kindOf;
}
static get DEFAULTS() {
return {
container: '#artplayer',
@@ -121,6 +126,7 @@ class Artplayer extends Emitter {
this.isFocus = false;
this.isDestroy = false;
this.storage = new Storage(this);
this.icons = new Icons(this);
this.i18n = new I18n(this);
this.notice = new Notice(this);
this.events = new Events(this);