 		c.setParent(@)
 		if options.default
 			@setDefaultChild(c)	
+		
 		@children.push c
 	
 	removeChild: (c) ->

			if descendant
				return descendant
				
	getActiveController: ->
		for child in @children
			return child if child.isActive()
	

	# TODO: Make sure it's the correct SM
	transition: (sm, from, to)=>
		if to == Controller.STATE_ACTIVATED
			@beforeActivate()
			@trigger "activating", @
			@doActivate()
		else if to == Controller.STATE_DEACTIVATED
			@beforeDeactivate()
			@trigger "deactivating", @
			@doDeactivate()
	
