 
 		Utils.delay 0, =>
 			transition[direction] animate, =>
-				# @_runningTransition = null
 				@emit(Events.TransitionEnd, from, to, {direction: direction, modal: @isModal})
 
 	_buildTransition: (transitionFunction, layerA, layerB, overlay) ->

		# # Buld a new transtition object with empty states
		transition = {}

		# seen = @_seen

		# layers =
		# 	layerA: layerA
		# 	layerB: layerB
		# 	overlay: overlay

		# for layerName, layer of layers

		# 	continue unless (layer and template[layerName])

		# 	throw Error("NavComponent.transition: #{layerName} needs a 'show' state") unless template[layerName].show
		# 	throw Error("NavComponent.transition: #{layerName} needs a 'hide' state") unless template[layerName].hide

		# 	transition.states[layerName] = new LayerStates(layer)
		# 	transition.states[layerName].show = template[layerName].show
		# 	transition.states[layerName].hide = template[layerName].hide

		# 	delete transition.states[layerName].initial


		# Add the forward function for this state to transition forward
		transition.forward = (animate=true, callback) =>



	_runTransition: (transition, direction, animate, from, to) =>

		@emit(Events.TransitionStart, from, to, {direction: direction, modal: @isModal})

		# Start the transition with a small delay added so it only runs after all
