function pause() {
		if (!_config2.default.is_touch_moving) {
			var pauseButtonSongIndex = this.getAttribute('amplitude-song-index');
			var pauseButtonPlaylistIndex = this.getAttribute('amplitude-playlist');

			if (pauseButtonSongIndex == null && pauseButtonPlaylistIndex == null) {
				_helpers2.default.setSongPlayPause(_config2.default.active_playlist, _config2.default.active_index);
				_core2.default.pause();
			}

			if (pauseButtonPlaylistIndex != null || pauseButtonPlaylistIndex != '' && _config2.default.active_playlist == pauseButtonPlaylistIndex) {
				/*
    	The song was playing so we sync visually for the song
    	to be paused and we pause the song.
    */
				_visual2.default.syncMainPlayPause('paused');

				/*
    	If there is an active playlist, then
    	we need to sync that playlist's play pause
    	button to the state of paused.
    */
				_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'paused');

				/*
    	Sync the song play pause buttons
    */
				_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'paused');

				_core2.default.pause();
			}

			if ((pauseButtonPlaylistIndex == null || pauseButtonPlaylistIndex == '') && pauseButtonSongIndex == _config2.default.active_index) {
				/*
    	The song was playing so we sync visually for the song
    	to be paused and we pause the song.
    */
				_visual2.default.syncMainPlayPause('paused');

				/*
    	If there is an active playlist, then
    	we need to sync that playlist's play pause
    	button to the state of paused.
    */
				_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'paused');

				/*
    	Sync the song play pause buttons
    */
				_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'paused');

				_core2.default.pause();
			}
		}
	}
/**
  * Handles an event on a pause button
  *
  * HANDLER FOR: 'amplitude-pause'
  *
  * @access public
  * @TODO Finish commenting and optimize
  */
Handles an event on a pause button
HANDLER FOR: 'amplitude-pause'

@access public
@TODO Finish commenting and optimize
Handles an event on a pause button HANDLER FOR : ' amplitude - pause ' @access public @TODO Finish commenting and optimize
function pause() {
		if (!_config2.default.is_touch_moving) {
			var pauseButtonSongIndex = this.getAttribute('amplitude-song-index');
			var pauseButtonPlaylistIndex = this.getAttribute('amplitude-playlist');
			if (pauseButtonSongIndex == null && pauseButtonPlaylistIndex == null) {
				_helpers2.default.setSongPlayPause(_config2.default.active_playlist, _config2.default.active_index);
				_core2.default.pause();
			}
			if (pauseButtonPlaylistIndex != null || pauseButtonPlaylistIndex != '' && _config2.default.active_playlist == pauseButtonPlaylistIndex) {
				_visual2.default.syncMainPlayPause('paused');
				_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'paused');
				_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'paused');
				_core2.default.pause();
			}
			if ((pauseButtonPlaylistIndex == null || pauseButtonPlaylistIndex == '') && pauseButtonSongIndex == _config2.default.active_index) {
				_visual2.default.syncMainPlayPause('paused');
				_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'paused');
				_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'paused');
				_core2.default.pause();
			}
		}
	}
function pause ( ) { if ( ! _config2 . default . is_touch_moving ) { var pauseButtonSongIndex = this . getAttribute ( 'amplitude-song-index' ) ; var pauseButtonPlaylistIndex = this . getAttribute ( 'amplitude-playlist' ) ; if ( pauseButtonSongIndex == null && pauseButtonPlaylistIndex == null ) { _helpers2 . default . setSongPlayPause ( _config2 . default . active_playlist , _config2 . default . active_index ) ; _core2 . default . pause ( ) ; } if ( pauseButtonPlaylistIndex != null || pauseButtonPlaylistIndex != '' && _config2 . default . active_playlist == pauseButtonPlaylistIndex ) { _visual2 . default . syncMainPlayPause ( 'paused' ) ; _visual2 . default . syncPlaylistPlayPause ( _config2 . default . active_playlist , 'paused' ) ; _visual2 . default . syncSongPlayPause ( _config2 . default . active_playlist , _config2 . default . active_index , 'paused' ) ; _core2 . default . pause ( ) ; } if ( ( pauseButtonPlaylistIndex == null || pauseButtonPlaylistIndex == '' ) && pauseButtonSongIndex == _config2 . default . active_index ) { _visual2 . default . syncMainPlayPause ( 'paused' ) ; _visual2 . default . syncPlaylistPlayPause ( _config2 . default . active_playlist , 'paused' ) ; _visual2 . default . syncSongPlayPause ( _config2 . default . active_playlist , _config2 . default . active_index , 'paused' ) ; _core2 . default . pause ( ) ; } } }
Handles an event on a pause button
 HANDLER FOR: 'amplitude-pause'
Handles an event on a pause button HANDLER FOR : ' amplitude - pause '
/*
    	The song was playing so we sync visually for the song
    	to be paused and we pause the song.
    */ /*
    	If there is an active playlist, then
    	we need to sync that playlist's play pause
    	button to the state of paused.
    */ /*
    	Sync the song play pause buttons
    */ /*
    	The song was playing so we sync visually for the song
    	to be paused and we pause the song.
    */ /*
    	If there is an active playlist, then
    	we need to sync that playlist's play pause
    	button to the state of paused.
    */ /*
    	Sync the song play pause buttons
    */