 				@classes = utils.clone(classes.items())
 
 		@item.document.node = @node
+		@item.document.visible = true
 		@updateText()
 		@updateVisibility()
 		@syncClassAttr('')

			item.label

	updateText: ->
		obj = @getTextObject()
		node = @node
		if node.children.length is 1 and node.children[0].name is 'a'

		return;

	findItemParent: ->
		if @waiting
			return

		if @isAutoParent and @item and not @item.parent
			@parentSet = true
			{node} = @
