function bindMute() {
		/*
  	Gets all of the elements with the class amplitue-mute
  */
		var mute_classes = document.getElementsByClassName("amplitude-mute");

		/*
  	Iterates over all of the mute classes and binds the event interaction
  	method to the element. If the browser is mobile, then the event is touchend
  	otherwise it is click.
  */
		for (var i = 0; i < mute_classes.length; i++) {
			/*
   	WARNING: If iOS, we don't do anything because iOS does not allow the
   	volume to be adjusted through anything except the buttons on the side of
   	the device.
   */
			if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
				/*
    	Checks for an iOS device and displays an error message if debugging
    	is turned on.
    */
				if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
					_helpers2.default.writeDebugMessage('iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4');
				} else {
					mute_classes[i].removeEventListener('touchend', _handlers2.default.mute);
					mute_classes[i].addEventListener('touchend', _handlers2.default.mute);
				}
			} else {
				mute_classes[i].removeEventListener('click', _handlers2.default.mute);
				mute_classes[i].addEventListener('click', _handlers2.default.mute);
			}
		}
	}
/*--------------------------------------------------------------------------
 	BINDS: class="amplitude-mute"
 		Binds click and touchend events for amplitude mute buttons
 --------------------------------------------------------------------------*/
class="amplitude-mute"
Binds click and touchend events for amplitude mute buttons
class = " amplitude - mute " Binds click and touchend events for amplitude mute buttons
function bindMute() {
		var mute_classes = document.getElementsByClassName("amplitude-mute");
		for (var i = 0; i < mute_classes.length; i++) {
			if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
				if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
					_helpers2.default.writeDebugMessage('iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4');
				} else {
					mute_classes[i].removeEventListener('touchend', _handlers2.default.mute);
					mute_classes[i].addEventListener('touchend', _handlers2.default.mute);
				}
			} else {
				mute_classes[i].removeEventListener('click', _handlers2.default.mute);
				mute_classes[i].addEventListener('click', _handlers2.default.mute);
			}
		}
	}
function bindMute ( ) { var mute_classes = document . getElementsByClassName ( "amplitude-mute" ) ; for ( var i = 0 ; i < mute_classes . length ; i ++ ) { if ( / Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini / i . test ( navigator . userAgent ) ) { if ( / iPhone|iPad|iPod / i . test ( navigator . userAgent ) ) { _helpers2 . default . writeDebugMessage ( 'iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4' ) ; } else { mute_classes [ i ] . removeEventListener ( 'touchend' , _handlers2 . default . mute ) ; mute_classes [ i ] . addEventListener ( 'touchend' , _handlers2 . default . mute ) ; } } else { mute_classes [ i ] . removeEventListener ( 'click' , _handlers2 . default . mute ) ; mute_classes [ i ] . addEventListener ( 'click' , _handlers2 . default . mute ) ; } } }
BINDS: class="amplitude-mute"
Binds click and touchend events for amplitude mute buttons
BINDS : class = " amplitude - mute " Binds click and touchend events for amplitude mute buttons
/*
  	Gets all of the elements with the class amplitue-mute
  */ /*
  	Iterates over all of the mute classes and binds the event interaction
  	method to the element. If the browser is mobile, then the event is touchend
  	otherwise it is click.
  */ /*
   	WARNING: If iOS, we don't do anything because iOS does not allow the
   	volume to be adjusted through anything except the buttons on the side of
   	the device.
   */ /*
    	Checks for an iOS device and displays an error message if debugging
    	is turned on.
    */