 					while @getInput('ADD' + i)
 						@removeInput('ADD' + i)
 						i++
-				
+
 				# -------------
 				# Rebuild block
 				# -------------

				@setColour(290) # 290 = Purple colour
				@setTooltip('Aggregate several datasources output together')
				@setHelpUrl('')
			
			# -----------------------------------------------
			# Create XML to represent number of array inputs.
			# -----------------------------------------------
			# @return {Element} XML storage elemen
			# @this Blockly.Block
			# -----------------------------------------------
			mutationToDom: ->

				container = document.createElement('mutation')
				container.setAttribute('items', @itemCount_)
				return container
			
			# -------------------------------------------------
			# Parse XML to restore the array inputs.
			# -------------------------------------------------
			# @param {!Element} xmlElement XML storage element.
			# @this Blockly.Block
			# -------------------------------------------------
			domToMutation: (xmlElement) ->

				@itemCount_ = parseInt(xmlElement.getAttribute('items'), 10)
				@updateShape_()
			
			# -----------------------------------------------------------
			# Populate the mutator's dialog with this block's components.
			# -----------------------------------------------------------
			# @param {!Blockly.Workspace} Mutator's workspace.
			# @return {!Blockly.Block} Root block in mutator.
			# @this Blockly.Block
			# -----------------------------------------------------------
			decompose: (workspace) ->

				containerBlock = Blockly.Block.obtain(workspace, 'text_create_join_container')

				  itemBlock.valueConnection_ = input && input.connection.targetConnection
				  itemBlock = itemBlock.nextConnection && itemBlock.nextConnection.targetBlock()
				  i++

			# ------------------------------------------------------
			# Modify this block to have the correct number of inputs
			# ------------------------------------------------------
			# @private
			# @this Blockly.Block
			# ------------------------------------------------------
			updateShape_: ->

				# -----------------
