Skip to content

Commit

Permalink
fix: Make sure we remove vjs-ended from the play toggle in all approp…
Browse files Browse the repository at this point in the history
…riate cases. (#4661)
  • Loading branch information
misteroneill authored and gkatsev committed Oct 13, 2017
1 parent e8511a5 commit 0287f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/control-bar/play-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class PlayToggle extends Button {
* @listens Player#seeked
*/
handleSeeked(event) {
// remove the ended class
this.removeClass('vjs-ended');

if (this.player_.paused()) {
Expand All @@ -86,6 +85,7 @@ class PlayToggle extends Button {
* @listens Player#play
*/
handlePlay(event) {
this.removeClass('vjs-ended');
this.removeClass('vjs-paused');
this.addClass('vjs-playing');
// change the button text to "Pause"
Expand Down

0 comments on commit 0287f6e

Please sign in to comment.