Skip to content

Commit

Permalink
docs: Fix simple typo, intial -> initial (#6851)
Browse files Browse the repository at this point in the history
There is a small typo in src/js/player.js, src/js/tech/html5.js, test/unit/sourceset.test.js.

Should read `initial` rather than `intial`.
  • Loading branch information
timgates42 authored Sep 22, 2020
1 parent cb70ea8 commit f22ead1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ class Player extends Component {
}
}

// update the source to the intial source right away
// update the source to the initial source right away
// in some cases this will be empty string
updateSourceCaches(eventSrc);

Expand Down Expand Up @@ -3335,7 +3335,7 @@ class Player extends Component {
return;
}

// intial sources
// initial sources
this.changingSrc_ = true;

this.cache_.sources = sources;
Expand Down
2 changes: 1 addition & 1 deletion src/js/tech/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ Html5.resetMediaElement = function(el) {

/**
* Set the value of `defaultMuted` on the media element. `defaultMuted` indicates that the current
* audio level should be silent, but will only effect the muted level on intial playback..
* audio level should be silent, but will only effect the muted level on initial playback..
*
* @method Html5.prototype.setDefaultMuted
* @param {boolean} defaultMuted
Expand Down
2 changes: 1 addition & 1 deletion test/unit/sourceset.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ QUnit[qunitFn]('sourceset', function(hooks) {
this.mediaEl = this.player.tech_.el();
});

// intial sourceset should happen on player.ready
// initial sourceset should happen on player.ready
this.player.one('sourceset', (e) => {
validateSource(this.player, [testSrc], e);
done();
Expand Down

0 comments on commit f22ead1

Please sign in to comment.