function syncPlaylistShuffle(state, playlist) {
		/*
  	Gets all of the shuffle buttons.
  */
		var shuffleButtons = document.getElementsByClassName("amplitude-shuffle");

		/*
  	Iterate over all of the shuffle buttons
  */
		for (var i = 0; i < shuffleButtons.length; i++) {
			/*
   	Ensure that the playlist the shuffle button belongs to matches the
   	playlist we are syncing the state for.
   */
			if (shuffleButtons[i].getAttribute('amplitude-playlist') == playlist) {
				/*
    	If the state of the playlist is shuffled on, true, then
    	we add the 'amplitude-shuffle-on' class and remove the
    	'amplitude-shuffle-off' class. If the player is not shuffled
    	then we do the opposite.
    */
				if (state) {
					shuffleButtons[i].classList.add('amplitude-shuffle-on');
					shuffleButtons[i].classList.remove('amplitude-shuffle-off');
				} else {
					shuffleButtons[i].classList.add('amplitude-shuffle-off');
					shuffleButtons[i].classList.remove('amplitude-shuffle-on');
				}
			}
		}
	}
/**
  * Syncs the playlist shuffle button visual state.
  *
  * @access public
  * @param {boolean} state 	- The shuffled state of the player.
  * @param {string} playlist - The playlist string the shuffle button belongs to.
  */
Syncs the playlist shuffle button visual state.
@access public
@param {boolean} state      - The shuffled state of the player.
@param {string} playlist - The playlist string the shuffle button belongs to.
Syncs the playlist shuffle button visual state . @access public @param { boolean } state - The shuffled state of the player . @param { string } playlist - The playlist string the shuffle button belongs to .
function syncPlaylistShuffle(state, playlist) {
		var shuffleButtons = document.getElementsByClassName("amplitude-shuffle");
		for (var i = 0; i < shuffleButtons.length; i++) {
			if (shuffleButtons[i].getAttribute('amplitude-playlist') == playlist) {
				if (state) {
					shuffleButtons[i].classList.add('amplitude-shuffle-on');
					shuffleButtons[i].classList.remove('amplitude-shuffle-off');
				} else {
					shuffleButtons[i].classList.add('amplitude-shuffle-off');
					shuffleButtons[i].classList.remove('amplitude-shuffle-on');
				}
			}
		}
	}
function syncPlaylistShuffle ( state , playlist ) { var shuffleButtons = document . getElementsByClassName ( "amplitude-shuffle" ) ; for ( var i = 0 ; i < shuffleButtons . length ; i ++ ) { if ( shuffleButtons [ i ] . getAttribute ( 'amplitude-playlist' ) == playlist ) { if ( state ) { shuffleButtons [ i ] . classList . add ( 'amplitude-shuffle-on' ) ; shuffleButtons [ i ] . classList . remove ( 'amplitude-shuffle-off' ) ; } else { shuffleButtons [ i ] . classList . add ( 'amplitude-shuffle-off' ) ; shuffleButtons [ i ] . classList . remove ( 'amplitude-shuffle-on' ) ; } } } }
Syncs the playlist shuffle button visual state.
Syncs the playlist shuffle button visual state .
/*
  	Gets all of the shuffle buttons.
  */ /*
  	Iterate over all of the shuffle buttons
  */ /*
   	Ensure that the playlist the shuffle button belongs to matches the
   	playlist we are syncing the state for.
   */ /*
    	If the state of the playlist is shuffled on, true, then
    	we add the 'amplitude-shuffle-on' class and remove the
    	'amplitude-shuffle-off' class. If the player is not shuffled
    	then we do the opposite.
    */