fix bug with thumbnail holder removal

This commit is contained in:
Chris Boustead 2017-11-15 16:57:54 -05:00
parent d75c370d0e
commit fc2b523fe8

View file

@ -84,7 +84,7 @@ class vttThumbnailsPlugin {
}
resetPlugin() {
this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder);
this.thumbnailHolder && 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);