aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 08e722c1..09b2aa8a 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -890,12 +890,14 @@ class Plyr {
// If it's a soft destroy, make minimal changes
if (soft) {
utils.removeElement(this.elements.captions);
+ Array.from(this.elements.buttons.play).forEach(button => utils.removeElement(button));
utils.removeElement(this.elements.controls);
utils.removeElement(this.elements.wrapper);
// Clear for GC
this.elements.captions = null;
this.elements.controls = null;
+ this.elements.buttons.play = null;
this.elements.wrapper = null;
// Callback