 					@addItem(childNode)
 				childNode = childNode.nextSibling
 			return
-		
+
 		doms = @_doms
 		child = dom.firstChild
 		while child

		})
		carousel = @
		dom.appendChild(@_doms.indicators)
		
		$(@_doms.indicators).delegate(">span", "click", ()->
			carousel.goTo($fly(@).index())
		)
		
		return null
	
	_createItemsWrap: (dom)->
		@_doms ?= {}
		@_doms.wrap = $.xCreate({

				if pos isnt index then @_scroller.slide(index)
		@fire("change", @, {index: index})
		return @

	refreshIndicators: ()->
		items = @_getDataItems().items
		if items
			itemsCount = if items instanceof cola.EntityList then items.entityCount else items.length
		else
			itemsCount = 0

		return unless @_doms?.indicators

		$(@_doms.indicators).find(">span").remove();
