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

			text_search_string = block.getFieldValue('SEARCH_STRING')
			theUrl = "http://it-ebooks-api.info/v1/search/restful"
			code = "var xmlHttp = new XMLHttpRequest();" +
				   "xmlHttp.open( 'GET', 'http://it-ebooks-api.info/v1/search/restful', false );" +
				   "xmlHttp.send( null );" +
				   "var response = xmlHttp.responseText;"
			# TODO: Change ORDER_NONE to the correct strength.
			return [code, Blockly.JavaScript.ORDER_NONE]
		
	#-----------------------------------------------------------------------------------------------------------
	# Custom Visual-Block
	#-----------------------------------------------------------------------------------------------------------
	# Name: 		Join 
	# Target-Category: 	Datasource
	# Source: 		https://github.com/google/blockly/blob/e3009310713209e80acc58a49d677d69f80d7b70/blocks/text.js starting from line 69 (i.e. Blockly.Blocks['text_join'])
	#-----------------------------------------------------------------------------------------------------------
	addCustomVisualBlockJoinBlock_DatasourceCategory: (context)->

		# ----------------------------------------------------------------------------------
		# Declare custom visual-block: Join
		# ----------------------------------------------------------------------------------
		# Block Functionality: Aggregate outputs of mulitple datasource-blocks of array type
		# Input Type: Array
		# Output Type: Array
		# ----------------------------------------------------------------------------------
		Blockly.Blocks['join_datasource'] = {

			init: ->


		# Clear ember-object-type collection
		@allBlocks_EmberObjType_FromWorkspace.clear()

		# Get predefined visual-block-composition to-be loaded to the workspace
		xml_text = @get('currentController.blockToLoad')

		# --------------------------------------------------------------------------
		# 1. Load to workspace the predefined visual-block-composition
		# 2. Add event-handlers to visual-blocks found in workspace
		# 3. Add visual-blocks from workspace as entry to ember-object-type
		# 	 collection
		# --------------------------------------------------------------------------
		# Load predefined visual-block-composition to the workspace
		if xml_text
			xml = Blockly.Xml.textToDom(xml_text)
