Continuing the discussion from Getting audio players to play their respective streams out of their element:
jslint is telling me this is an error.
It doesn’t make any sense, how is that wrong?
function togglePlayButton(button) {
const player = getAudio();
const playing = isPlaying(button);
showButton(button, {
playing
});
manageAudio(player, {
src: button.getAttribute("data-audio"),
playing
});
}