mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
调整销毁事件
This commit is contained in:
1 parent
62e6f51dd7
commit
e9b0ff101b
5 files changed
+7
-4
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user