Update index.js

This commit is contained in:
Harvey Zack committed 2019-05-27 09:15:24 +08:00
1 parent 0af2403bb8
commit 1f25803519
1 file changed
+1 -3
+1 -3
View File
@@ -155,9 +155,7 @@ class Artplayer extends Emitter {
} }
destroy(removeHtml = false) { destroy(removeHtml = false) {
if (this.events) { this.events.destroy();
this.events.destroy();
}
this.template.destroy(removeHtml); this.template.destroy(removeHtml);
Artplayer.instances.splice(Artplayer.instances.indexOf(this), 1); Artplayer.instances.splice(Artplayer.instances.indexOf(this), 1);
this.isDestroy = true; this.isDestroy = true;