aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-10 11:28:20 +0000
committerGitHub <noreply@github.com>2020-02-10 11:28:20 +0000
commitdb05322ba2c47606599f635c749db3bdd8ee6c82 (patch)
treecacd4af100d5f815c474ea289a954cb72c87e064 /src/js/plugins
parent74e5c78b3fed59636792cee8bdd0e711afa45548 (diff)
parentd7d0f5fca08b4352a6e2ab430503ce0720b4555d (diff)
downloadplyr-db05322ba2c47606599f635c749db3bdd8ee6c82.tar.lz
plyr-db05322ba2c47606599f635c749db3bdd8ee6c82.tar.xz
plyr-db05322ba2c47606599f635c749db3bdd8ee6c82.zip
Merge pull request #1670 from ydylla/previewThumbnails-setter
Add previewThumbnails source setter
Diffstat (limited to 'src/js/plugins')
-rw-r--r--src/js/plugins/preview-thumbnails.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/js/plugins/preview-thumbnails.js b/src/js/plugins/preview-thumbnails.js
index e5378bd3..86eeebc8 100644
--- a/src/js/plugins/preview-thumbnails.js
+++ b/src/js/plugins/preview-thumbnails.js
@@ -104,7 +104,7 @@ class PreviewThumbnails {
}
load() {
- // Togglethe regular seek tooltip
+ // Toggle the regular seek tooltip
if (this.player.elements.display.seekTooltip) {
this.player.elements.display.seekTooltip.hidden = this.enabled;
}
@@ -328,6 +328,15 @@ class PreviewThumbnails {
this.player.elements.wrapper.appendChild(this.elements.scrubbing.container);
}
+ destroy() {
+ if (this.elements.thumb.container) {
+ this.elements.thumb.container.remove();
+ }
+ if (this.elements.scrubbing.container) {
+ this.elements.scrubbing.container.remove();
+ }
+ }
+
showImageAtCurrentTime() {
if (this.mouseDown) {
this.setScrubbingContainerSize();