function bindShuffle() {
		/*
  	Gets all of the elements with the class amplitude-shuffle
  */
		var shuffle_classes = document.getElementsByClassName("amplitude-shuffle");

		/*
  	Iterates over all of the shuffle classes and binds the event interaction
  	methods to the element. If the browser is mobile, then the event is touchend
  	otherwise it is click.
  */
		for (var i = 0; i < shuffle_classes.length; i++) {
			/*
   	Since we are re-binding everything we remove any classes that signify
   	a state of the shuffle control.
   */
			shuffle_classes[i].classList.remove('amplitude-shuffle-on');
			shuffle_classes[i].classList.add('amplitude-shuffle-off');

			if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
				shuffle_classes[i].removeEventListener('touchend', _handlers2.default.shuffle);
				shuffle_classes[i].addEventListener('touchend', _handlers2.default.shuffle);
			} else {
				shuffle_classes[i].removeEventListener('click', _handlers2.default.shuffle);
				shuffle_classes[i].addEventListener('click', _handlers2.default.shuffle);
			}
		}
	}
/*--------------------------------------------------------------------------
 	BINDS: class="amplitude-shuffle"
 		Binds click and touchend events for amplitude shuffle buttons.
 --------------------------------------------------------------------------*/
class="amplitude-shuffle"
Binds click and touchend events for amplitude shuffle buttons.
class = " amplitude - shuffle " Binds click and touchend events for amplitude shuffle buttons .
function bindShuffle() {
		var shuffle_classes = document.getElementsByClassName("amplitude-shuffle");
		for (var i = 0; i < shuffle_classes.length; i++) {
			shuffle_classes[i].classList.remove('amplitude-shuffle-on');
			shuffle_classes[i].classList.add('amplitude-shuffle-off');
			if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
				shuffle_classes[i].removeEventListener('touchend', _handlers2.default.shuffle);
				shuffle_classes[i].addEventListener('touchend', _handlers2.default.shuffle);
			} else {
				shuffle_classes[i].removeEventListener('click', _handlers2.default.shuffle);
				shuffle_classes[i].addEventListener('click', _handlers2.default.shuffle);
			}
		}
	}
function bindShuffle ( ) { var shuffle_classes = document . getElementsByClassName ( "amplitude-shuffle" ) ; for ( var i = 0 ; i < shuffle_classes . length ; i ++ ) { shuffle_classes [ i ] . classList . remove ( 'amplitude-shuffle-on' ) ; shuffle_classes [ i ] . classList . add ( 'amplitude-shuffle-off' ) ; if ( / Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini / i . test ( navigator . userAgent ) ) { shuffle_classes [ i ] . removeEventListener ( 'touchend' , _handlers2 . default . shuffle ) ; shuffle_classes [ i ] . addEventListener ( 'touchend' , _handlers2 . default . shuffle ) ; } else { shuffle_classes [ i ] . removeEventListener ( 'click' , _handlers2 . default . shuffle ) ; shuffle_classes [ i ] . addEventListener ( 'click' , _handlers2 . default . shuffle ) ; } } }
BINDS: class="amplitude-shuffle"
Binds click and touchend events for amplitude shuffle buttons.
BINDS : class = " amplitude - shuffle " Binds click and touchend events for amplitude shuffle buttons .
/*
  	Gets all of the elements with the class amplitude-shuffle
  */ /*
  	Iterates over all of the shuffle classes and binds the event interaction
  	methods to the element. If the browser is mobile, then the event is touchend
  	otherwise it is click.
  */ /*
   	Since we are re-binding everything we remove any classes that signify
   	a state of the shuffle control.
   */