Replaced calls to player.restart() and player.togglePlay() with proxy(...) to ensure that custom handlers are called
This commit is contained in:
parent
e8d2f23b81
commit
80813b0406
@ -386,10 +386,10 @@ class Listeners {
|
||||
}
|
||||
|
||||
if (player.ended) {
|
||||
player.restart();
|
||||
player.play();
|
||||
this.proxy(event, player.restart, 'restart');
|
||||
this.proxy(event, player.togglePlay, 'play');
|
||||
} else {
|
||||
player.togglePlay();
|
||||
this.proxy(event, player.togglePlay, 'play');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user