diff --git a/src/lib/viewers/media/Settings.js b/src/lib/viewers/media/Settings.js index e32ae01ac..b827aeadc 100644 --- a/src/lib/viewers/media/Settings.js +++ b/src/lib/viewers/media/Settings.js @@ -106,6 +106,61 @@ const SUBTITLES_SUBITEM_TEMPLATE = `
= 0) into the subtitles list, that should be toggled to when CC toggled on + * + * @property {string} + */ + toggleToSubtitle = undefined; /** * Service to handle the position and movement of a slider element @@ -125,11 +180,7 @@ class Settings extends EventEmitter { this.settingsButtonEl = this.containerEl.querySelector('.bp-media-gear-icon'); addActivationListener(this.settingsEl, this.menuEventHandler); - this.visible = false; this.containerEl.classList.add(CLASS_SETTINGS_SUBTITLES_UNAVAILABLE); - this.subtitles = []; - this.language = undefined; - this.toggleToSubtitle = undefined; // An index into the subtitles list. Initialize with sentinel value this.init(); }