 						from: Node.States.ACTIVATED
 						to: Node.States.DEACTIVATED
 
+		# Add a callback lambda to the SM and map the two  
+		# state transitions to methods in this class.
 		@sm().performTransition = (t) =>
 			if t == Node.Transitions.ACTIVATE
 				@beforeActivate()
-				#@trigger 'activating', @
 				@doActivate()
 			else if t == Node.Transitions.DEACTIVATE
 				@beforeDeactivate()
-				#@trigger 'deactivating', @
 				@doDeactivate()
 
 		@setOnActivatedAction = (action) ->

			else if action.transition == Node.Transitions.DEACTIVATE
				@deactivate(action.node)

	# # # instance
	
	constructor: (opts={})->
		parent = null
		children = []

		if opts.children
			for node in opts.children
				node.setParent @


		@addChild = (node) ->
			node.setParent(@)
			children.push node

		@removeChild = (node) ->
