 		
 	###
 	
-	#constructor: (options={}) ->
-	#	@template = options.template
-	#	super
-	#		#multipleActiveChildren: true
-	#		defaultState: options.defaultState or Exo.Controller.STATE_ACTIVATED
-			
-	prepare: ->
+	constructor: (options={}) ->
+		super $.extend(options, {mode: Exo.Controller.MODE_MULTI, defaultState: Exo.Controller.STATE_ACTIVATED})
 		
 	render:(collection) ->
 		if @template


	# Find children that have been deleted from the collection. Deactivate them, remove them from the DOM and make them available for GC.
	deactivateAndKillOrphans: (children, collection) ->

	# Reorder the children in the DOM according to the collection order.
	orderChildren: (children, collection) ->

			# Dynamically create child controllers
			for item in collection
				child = @getOrCreateChild item
				child.activate()

			@deactivateAndKillOrphans(@getChildren(), collection)
			@orderChildren(@getChildren(), collection)
