function syncPlaylistPlayPause(playlist, state) {
		/*
  	Ensures we have a string for the state otherwise we grab the
  	state from the config.
  */
		if (typeof state != "string") {
			state = _config2.default.active_song.paused ? "paused" : "playing";
		}

		/*
  	Get all of the main playlist play pause elements
  */
		var playlistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[amplitude-playlist-main-play-pause="true"]');

		/*
  	Iterate over the play pause elements, syncing the state accordingly.
  */
		for (var i = 0; i < playlistPlayPauseElements.length; i++) {
			/*
   	If the element has the same playlist attribute as the playlist
   	passed in and the state is playing, we set the element to
   	be playing otherwise we set it to pause. Setting to pause
   	means the element doesn't match the active playlist or the
   	state is paused.
   */
			if (playlistPlayPauseElements[i].getAttribute('amplitude-playlist') == playlist && state == 'playing') {

				_helpers2.default.setElementPlay(playlistPlayPauseElements[i]);
			} else {
				_helpers2.default.setElementPause(playlistPlayPauseElements[i]);
			}
		}
	}
/**
  * Syncs the main playlist play pause buttons to the state of the active song.
  *
  * @access public
  * @param {string} playlist 	- The playlist we are setting the play pause state for.
  * @param {string} state 			- Either playing or paused for the state of the active song.
  */
Syncs the main playlist play pause buttons to the state of the active song.
@access public
@param {string} playlist    - The playlist we are setting the play pause state for.
@param {string} state                       - Either playing or paused for the state of the active song.
Syncs the main playlist play pause buttons to the state of the active song . @access public @param { string } playlist - The playlist we are setting the play pause state for . @param { string } state - Either playing or paused for the state of the active song .
function syncPlaylistPlayPause(playlist, state) {
		if (typeof state != "string") {
			state = _config2.default.active_song.paused ? "paused" : "playing";
		}
		var playlistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[amplitude-playlist-main-play-pause="true"]');
		for (var i = 0; i < playlistPlayPauseElements.length; i++) {
			if (playlistPlayPauseElements[i].getAttribute('amplitude-playlist') == playlist && state == 'playing') {
				_helpers2.default.setElementPlay(playlistPlayPauseElements[i]);
			} else {
				_helpers2.default.setElementPause(playlistPlayPauseElements[i]);
			}
		}
	}
function syncPlaylistPlayPause ( playlist , state ) { if ( typeof state != "string" ) { state = _config2 . default . active_song . paused ? "paused" : "playing" ; } var playlistPlayPauseElements = document . querySelectorAll ( '.amplitude-play-pause[amplitude-playlist-main-play-pause="true"]' ) ; for ( var i = 0 ; i < playlistPlayPauseElements . length ; i ++ ) { if ( playlistPlayPauseElements [ i ] . getAttribute ( 'amplitude-playlist' ) == playlist && state == 'playing' ) { _helpers2 . default . setElementPlay ( playlistPlayPauseElements [ i ] ) ; } else { _helpers2 . default . setElementPause ( playlistPlayPauseElements [ i ] ) ; } } }
Syncs the main playlist play pause buttons to the state of the active song.
Syncs the main playlist play pause buttons to the state of the active song .
/*
  	Ensures we have a string for the state otherwise we grab the
  	state from the config.
  */ /*
  	Get all of the main playlist play pause elements
  */ /*
  	Iterate over the play pause elements, syncing the state accordingly.
  */ /*
   	If the element has the same playlist attribute as the playlist
   	passed in and the state is playing, we set the element to
   	be playing otherwise we set it to pause. Setting to pause
   	means the element doesn't match the active playlist or the
   	state is paused.
   */