src/parsers/dataParser.js
function _extractTransitions( prop, stateView, nextView )
	{
		var groupedTransitions = [];
		if( prop.transitions ) { // if more transitions exist, add them
		 	groupedTransitions = prop.transitions.map( ( transitionObject ) => { 
		 		return transitionObject; 
		 	});
		}
		prop.views = unique( prop.views, [ stateView, nextView ] );
		groupedTransitions.unshift( { transitionType : prop.transitionType, views : prop.views } );
		return groupedTransitions;
	}
function _extractTransitions( prop, stateView, nextView )
	{
		var groupedTransitions = [];
		if( prop.transitions ) { // if more transitions exist, add them
		 	groupedTransitions = prop.transitions.map( ( transitionObject ) => { 
		 		return transitionObject; 
		 	});
		}
		prop.views = unique( prop.views, [ stateView, nextView ] );
		groupedTransitions.unshift( { transitionType : prop.transitionType, views : prop.views } );
		return groupedTransitions;
	}
function _extractTransitions ( prop , stateView , nextView ) { var groupedTransitions = [ ] ; if ( prop . transitions ) { // if more transitions exist, add them groupedTransitions = prop . transitions . map ( ( transitionObject ) => { return transitionObject ; } ) ; } prop . views = unique ( prop . views , [ stateView , nextView ] ) ; groupedTransitions . unshift ( { transitionType : prop . transitionType , views : prop . views } ) ; return groupedTransitions ; }
extract transition information
and extract data if transition information is
an array of transitions
@param  {onbject} prop
@param  {string} stateView - id of state view
@param  {string} nextView  - id of view this transition goes to
@return {array} array of transitions fot this action
extract transition information and extract data if transition information is an array of transitions