This commit is contained in:
Sam Potts
2018-06-18 23:21:03 +10:00
parent 22d524ac9d
commit ea4d91d2a0
14 changed files with 32 additions and 22 deletions

View File

@ -214,9 +214,11 @@ const ui = {
toggleClass(this.elements.container, this.config.classNames.stopped, this.stopped);
// Set state
Array.from(this.elements.buttons.play).forEach(target => {
target.pressed = this.playing;
});
if (is.nodeList(this.elements.buttons.play)) {
Array.from(this.elements.buttons.play).forEach(target => {
target.pressed = this.playing;
});
}
// Only update controls on non timeupdate events
if (is.event(event) && event.type === 'timeupdate') {