Skip to content

Commit 7da7766

Browse files
Maysjtugkatsev
authored andcommitted
docs: fix more misspellings (#5067)
1 parent 167b7d8 commit 7da7766

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/js/clickable-component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file button.js
2+
* @file clickable-component.js
33
*/
44
import Component from './component';
55
import * as Dom from './utils/dom.js';
@@ -78,7 +78,7 @@ class ClickableComponent extends Component {
7878
}
7979

8080
dispose() {
81-
// remove controlTextEl_ on dipose
81+
// remove controlTextEl_ on dispose
8282
this.controlTextEl_ = null;
8383

8484
super.dispose();

src/js/poster-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PosterImage extends ClickableComponent {
8585
setSrc(url) {
8686
let backgroundImage = '';
8787

88-
// Any falsey values should stay as an empty string, otherwise
88+
// Any falsy value should stay as an empty string, otherwise
8989
// this will throw an extra error
9090
if (url) {
9191
backgroundImage = `url("${url}")`;

src/js/slider/slider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Slider extends Component {
100100
}
101101

102102
/**
103-
* Create the `Button`s DOM element.
103+
* Create the `Slider`s DOM element.
104104
*
105105
* @param {string} type
106106
* Type of element to create.
@@ -270,8 +270,8 @@ class Slider extends Component {
270270
*
271271
* @return {number}
272272
* The current position of the Slider.
273-
* - postition.x for vertical `Slider`s
274-
* - postition.y for horizontal `Slider`s
273+
* - position.x for vertical `Slider`s
274+
* - position.y for horizontal `Slider`s
275275
*/
276276
calculateDistance(event) {
277277
const position = Dom.getPointerPosition(this.el_, event);

src/js/tech/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MediaLoader extends Component {
2121
* The `Player` that this class should attach to.
2222
*
2323
* @param {Object} [options]
24-
* The key/value stroe of player options.
24+
* The key/value store of player options.
2525
*
2626
* @param {Component~ReadyCallback} [ready]
2727
* The function that is run when this component is ready.

src/js/tech/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function get(middleware, tech, method) {
3737

3838
/**
3939
* Takes the argument given to the player and calls the setter method on each
40-
* middlware from left to right to the tech.
40+
* middleware from left to right to the tech.
4141
*/
4242
export function set(middleware, tech, method, arg) {
4343
return tech[method](middleware.reduce(middlewareIterator(method), arg));

src/js/tracks/text-track-display.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class TextTrackDisplay extends Component {
162162
}
163163

164164
// The preferredTrack matches the user preference and takes
165-
// precendence over all the other tracks.
165+
// precedence over all the other tracks.
166166
// So, display the preferredTrack before the first default track
167167
// and the subtitles/captions track before the descriptions track
168168
if (preferredTrack) {
@@ -260,7 +260,7 @@ class TextTrackDisplay extends Component {
260260
}
261261

262262
/**
263-
* Add an {@link Texttrack} to to the {@link Tech}s {@link TextTrackList}.
263+
* Add an {@link TextTrack} to to the {@link Tech}s {@link TextTrackList}.
264264
*
265265
* @param {TextTrack} track
266266
* Text track object to be added to the list.

0 commit comments

Comments
 (0)