 
 		@_stack.push({layer:layer, transition:transition})
 
-	dialog: (layer)->
+	dialog: (layer) ->
 		@push(layer, Transitions.dialog, true, false)
 
-	modal: (layer)->
+	modal: (layer) ->
 		@push(layer, Transitions.modal, true, false)
 
-	back: ->
+	back: =>
 		return unless @previous
 		previous = @_stack.pop()
 		previous?.transition.back()
+		@emit("back")
 
 	@define "stack",
 		get: -> _.clone(@_stack)

			backgroundColor: "black"
			visible: false

		@background.onTap =>
			@back()

		# Screen.onEdgeSwipeLeftEnd (e) =>
		# 	@back()



		layer.point = Utils.pointZero()

		scroll = new ScrollComponent
		scroll.name = "scroll"
		scroll.size = @size
		scroll.backgroundColor = @backgroundColor
		scroll.scrollHorizontal = layer.width > @width
		scroll.scrollVertical = layer.height > @height
		layer.parent = scroll.content

		layer[NavComponentLayerScrollKey] = scroll

