1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

fix(jsdoc): controlText_ should have a protected access modifier. (#7972)

This commit is contained in:
Grzegorz Blaszczyk 2022-10-28 09:15:25 +02:00 committed by Pat O'Neill
parent b8ee8858f8
commit dec7075386
18 changed files with 23 additions and 17 deletions

View File

@ -87,7 +87,7 @@ class BigPlayButton extends Button {
* The text that should display over the `BigPlayButton`s controls. Added to for localization.
*
* @type {string}
* @private
* @protected
*/
BigPlayButton.prototype.controlText_ = 'Play Video';

View File

@ -148,6 +148,7 @@ class ClickableComponent extends Component {
const localizedText = this.localize(text);
/** @protected */
this.controlText_ = text;
Dom.textContent(this.controlTextEl_, localizedText);
if (!this.nonIconControl && !this.player_.options_.noUITitleAttributes) {

View File

@ -76,7 +76,7 @@ class AudioTrackButton extends TrackButton {
* The text that should display over the `AudioTrackButton`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
AudioTrackButton.prototype.controlText_ = 'Audio Track';
Component.registerComponent('AudioTrackButton', AudioTrackButton);

View File

@ -82,7 +82,7 @@ class FullscreenToggle extends Button {
* The text that should display over the `FullscreenToggle`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
FullscreenToggle.prototype.controlText_ = 'Fullscreen';

View File

@ -139,7 +139,7 @@ class MuteToggle extends Button {
* The text that should display over the `MuteToggle`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
MuteToggle.prototype.controlText_ = 'Mute';

View File

@ -114,7 +114,7 @@ class PictureInPictureToggle extends Button {
* The text that should display over the `PictureInPictureToggle`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
PictureInPictureToggle.prototype.controlText_ = 'Picture-in-Picture';

View File

@ -136,7 +136,7 @@ class PlayToggle extends Button {
* The text that should display over the `PlayToggle`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
PlayToggle.prototype.controlText_ = 'Play';

View File

@ -166,7 +166,7 @@ class PlaybackRateMenuButton extends MenuButton {
* Added for localization.
*
* @type {string}
* @private
* @protected
*/
PlaybackRateMenuButton.prototype.controlText_ = 'Playback Rate';

View File

@ -92,7 +92,12 @@ class SeekToLive extends Button {
super.dispose();
}
}
/**
* The text that should display over the `SeekToLive`s control. Added for localization.
*
* @type {string}
* @protected
*/
SeekToLive.prototype.controlText_ = 'Seek to live, currently playing live';
Component.registerComponent('SeekToLive', SeekToLive);

View File

@ -75,7 +75,7 @@ CaptionsButton.prototype.kind_ = 'captions';
* The text that should display over the `CaptionsButton`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
CaptionsButton.prototype.controlText_ = 'Captions';

View File

@ -209,7 +209,7 @@ ChaptersButton.prototype.kind_ = 'chapters';
* The text that should display over the `ChaptersButton`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
ChaptersButton.prototype.controlText_ = 'Chapters';

View File

@ -93,7 +93,7 @@ DescriptionsButton.prototype.kind_ = 'descriptions';
* The text that should display over the `DescriptionsButton`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
DescriptionsButton.prototype.controlText_ = 'Descriptions';

View File

@ -74,7 +74,7 @@ SubsCapsButton.prototype.kinds_ = ['captions', 'subtitles'];
*
*
* @type {string}
* @private
* @protected
*/
SubsCapsButton.prototype.controlText_ = 'Subtitles';

View File

@ -54,7 +54,7 @@ SubtitlesButton.prototype.kind_ = 'subtitles';
* The text that should display over the `SubtitlesButton`s controls. Added for localization.
*
* @type {string}
* @private
* @protected
*/
SubtitlesButton.prototype.controlText_ = 'Subtitles';

View File

@ -55,7 +55,7 @@ CurrentTimeDisplay.prototype.labelText_ = 'Current Time';
* The text that should display over the `CurrentTimeDisplay`s controls. Added to for localization.
*
* @type {string}
* @private
* @protected
*
* @deprecated in v7; controlText_ is not used in non-active display Components
*/

View File

@ -81,7 +81,7 @@ DurationDisplay.prototype.labelText_ = 'Duration';
* The text that should display over the `DurationDisplay`s controls. Added to for localization.
*
* @type {string}
* @private
* @protected
*
* @deprecated in v7; controlText_ is not used in non-active display Components
*/

View File

@ -93,7 +93,7 @@ RemainingTimeDisplay.prototype.labelText_ = 'Remaining Time';
* The text that should display over the `RemainingTimeDisplay`s controls. Added to for localization.
*
* @type {string}
* @private
* @protected
*
* @deprecated in v7; controlText_ is not used in non-active display Components
*/

View File

@ -140,7 +140,7 @@ TimeDisplay.prototype.labelText_ = 'Time';
* The text that should display over the `TimeDisplay`s controls. Added to for localization.
*
* @type {string}
* @private
* @protected
*
* @deprecated in v7; controlText_ is not used in non-active display Components
*/