Wrap caption toggle event listener callback to avoid sending event

This commit is contained in:
Albin Larsson
2018-06-15 02:44:00 +02:00
parent 6ce9a94932
commit 8257857075

View File

@ -459,7 +459,7 @@ class Listeners {
);
// Captions toggle
bind(this.player.elements.buttons.captions, 'click', this.player.toggleCaptions);
bind(this.player.elements.buttons.captions, 'click', () => this.player.toggleCaptions());
// Fullscreen toggle
bind(