SOLVED: Expected property 'playing' to be ordered before property 'src'

I’m receiving this jslint error, how is it fixed?

I have no idea how to fix this.

You can’t just put playing on top of src.

https://jsfiddle.net/6y09z7fu/

  function togglePlayButton(button) {
    const player = getAudio();
    const playing = isPlaying(button);
    showButton(button, {
      playing
    });
    manageAudio(player, {
      src: button.getAttribute("data-audio"),
      playing
    });
  }

Fixed:
https://jsfiddle.net/by02cesm/1/

  manageAudio(player, {
      playing,
      src: button.getAttribute("data-audio")
    });
  }

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.