 	for signal in signals
 		r += "#{obj.id}.createSignal('#{utils.addSlashes(signal)}')\n"
 
+	r
+
+stringObjectChildren = (obj) ->
+	assert obj.type is OBJECT, "stringObject: type must be an object"
+
+	r = ""
+
 	for child in getByType(obj.body, OBJECT)
 		r += stringObject child
 

		if elem.type is OBJECT
			code += "if (#{elem.id} instanceof Item) mainItem = #{elem.id};\n"

	idsObject = '{'
	for id in idsKeys
		idsObject += "#{id}: #{id}, "
	if idsKeys.length > 0
		idsObject = idsObject.slice 0, -2
	idsObject += "}"
	code += "var ids = #{idsObject};\n"

	code

		if typeof elem is 'string'
			elem = elem.replace ///'///g, '\\\''
			text += "'#{elem}'"
		else if elem.length > 1
			text += repeatString('[', elem.length-1)
			text += "#{elem[0]}"
			elem.shift()
			for id, i in elem
				text += ", '#{id}']"
		else
			text += "#{elem[0]}"

	"[#{text}]"

stringObjectHead = (obj) ->
	assert obj.type is OBJECT, "stringObject: type must be an object"

	if getByType(obj.body, ID).length > 0
