mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2024-10-01 03:05:36 -04:00
Remove thumb holder on reset/detach
This commit is contained in:
parent
6ac730a5fc
commit
d75c370d0e
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "videojs-vtt-thumbnails",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"description": "Display thumnails on progress bar hover, driven by external VTT files.",
|
||||
"main": "dist/videojs-vtt-thumbnails.cjs.js",
|
||||
"module": "dist/videojs-vtt-thumbnails.es.js",
|
||||
|
@ -84,6 +84,7 @@ class vttThumbnailsPlugin {
|
||||
}
|
||||
|
||||
resetPlugin() {
|
||||
this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder);
|
||||
this.progressBar.removeEventListener('mouseenter', this.registeredEvents.progressBarMouseEnter);
|
||||
this.progressBar.removeEventListener('mouseleave', this.registeredEvents.progressBarMouseLeave);
|
||||
this.progressBar.removeEventListener('mousemove', this.registeredEvents.progressBarMouseMove);
|
||||
|
Loading…
Reference in New Issue
Block a user