优化destroy

This commit is contained in:
Harvey committed 2020-05-06 10:20:20 +08:00
1 parent 6e691b89e6
commit 353727f318
1 file changed
+1 -1
+1 -1
View File
@@ -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');
}