 	##############################################################
 	# Transitions
 
-	push: (layer, animate, wrap, transitionFunction) ->
+	_transition: (layer, animate, wrap, transitionFunction) ->
 
 		throw new Error "NavComponent.push expects a layer" unless layer
 		return if layer is @current

	# you can put them into a ScrollComponent yourself and then insert them.

	modalLeft: (layer, animate) ->
		@push(layer, animate, false, Transitions.modalLeft)

	modalRight: (layer, animate) ->
		@push(layer, animate, false, Transitions.modalRight)
	
	modalTop: (layer, animate) ->
		@push(layer, animate, false, Transitions.modalTop)

	modalBottom: (layer, animate) ->
		@push(layer, animate, false, Transitions.modalBottom)

	back: (animate=true) =>
		return unless @previous

		@_runTransition(transition, "forward", animate, @current, layer)
		@_stack.push({layer:layer, transition:transition})

	push: (layer, animate) ->
		@_transition(layer, animate, false, Transitions.push)

	dialog: (layer, animate) ->
		@_transition(layer, animate, false, Transitions.dialog)

	modal: (layer, animate) ->
		@modalRight(layer, animate)
