mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 22:06:17 -08:00
优化destroy
This commit is contained in:
1 parent
6e691b89e6
commit
353727f318
1 file changed
+1
-1
@@ -157,7 +157,7 @@ class Artplayer extends Emitter {
|
||||
destroy(removeHtml = true) {
|
||||
this.events.destroy();
|
||||
this.template.destroy(removeHtml);
|
||||
Artplayer.instances.splice(Artplayer.instances.indexOf(this), 1);
|
||||
instances.splice(instances.indexOf(this), 1);
|
||||
this.isDestroy = true;
|
||||
this.emit('destroy');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user