调整销毁事件

This commit is contained in:
Harvey Zack committed 2018-10-31 16:02:21 +08:00
1 parent 62e6f51dd7
commit e9b0ff101b
5 files changed
+7 -4

No files matched your search

+2
View File
@@ -131,6 +131,8 @@ class Artplayer extends Emitter {
instances.splice(instances.indexOf(this), 1);
if (removeHtml) {
this.refs.$container.innerHTML = '';
} else {
this.refs.$player.classList.add('artplayer-destroy');
}
this.emit('destroy');
}