Merge pull request #1063 from klassicd/develop

Handle undefined this.player.elements.buttons.play
This commit is contained in:
Sam Potts
2018-06-25 20:21:49 +10:00
committed by GitHub

View File

@ -431,9 +431,11 @@ class Listeners {
}; };
// Play/pause toggle // Play/pause toggle
Array.from(this.player.elements.buttons.play).forEach(button => { if (this.player.elements.buttons.play) {
bind(button, 'click', this.player.togglePlay, 'play'); Array.from(this.player.elements.buttons.play).forEach(button => {
}); bind(button, 'click', this.player.togglePlay, 'play');
});
}
// Pause // Pause
bind(this.player.elements.buttons.restart, 'click', this.player.restart, 'restart'); bind(this.player.elements.buttons.restart, 'click', this.player.restart, 'restart');