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

			group = new AnimationGroup(animations)
			group.start()

		transition.back = (animate=true, callback) ->

			animations = []
			options = {instant:!animate}

			if layerA and template.layerA
				animations.push(new Animation(layerA, template.layerA.show, options))
			
			if layerB and template.layerB
				animations.push(new Animation(layerB, template.layerB.hide, options))

			if overlay and template.overlay
				animations.push(new Animation(overlay, template.overlay.hide, options))
				overlay.ignoreEvents = true

			group = new AnimationGroup(animations)
			group.start()

		return transition


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

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

