diff options
author | Sam Potts <sam@potts.es> | 2018-02-13 00:01:19 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-02-13 00:01:19 +1100 |
commit | 6a9be8d16b9fba408f92643471b00f10893032ce (patch) | |
tree | 935c6e6a605ec82dee1d174f0cfedd00fac573a4 /src/js/plyr.js | |
parent | 58c2c52c95c9d9ac37243bf495d6a9796a4781af (diff) | |
download | plyr-6a9be8d16b9fba408f92643471b00f10893032ce.tar.lz plyr-6a9be8d16b9fba408f92643471b00f10893032ce.tar.xz plyr-6a9be8d16b9fba408f92643471b00f10893032ce.zip |
Fix for custom controls
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 148f462a..2ca4cb80 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1042,12 +1042,8 @@ class Plyr { // If it's a soft destroy, make minimal changes if (soft) { if (Object.keys(this.elements).length) { - // Remove buttons - if (this.elements.buttons && this.elements.buttons.play) { - Array.from(this.elements.buttons.play).forEach(button => utils.removeElement(button)); - } - - // Remove others + // Remove elements + utils.removeElement(this.elements.buttons.play); utils.removeElement(this.elements.captions); utils.removeElement(this.elements.controls); utils.removeElement(this.elements.wrapper); |