mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
Update index.js
This commit is contained in:
1 parent
0af2403bb8
commit
1f25803519
1 file changed
+1
-3
@@ -155,9 +155,7 @@ class Artplayer extends Emitter {
|
||||
}
|
||||
|
||||
destroy(removeHtml = false) {
|
||||
if (this.events) {
|
||||
this.events.destroy();
|
||||
}
|
||||
this.events.destroy();
|
||||
this.template.destroy(removeHtml);
|
||||
Artplayer.instances.splice(Artplayer.instances.indexOf(this), 1);
|
||||
this.isDestroy = true;
|
||||
|
||||
Reference in new issue
Block a user