 		return
 
 	findItemIndex: ->
-		if @parentSet
+		if @parentSet or not @isAutoParent
 			findItemIndex.call @, @node, @item, @item.parent
 			true
 		else

		(attr, val, oldVal) ->
			assert.instanceOf @, Style

			if @waiting or not @item
				@attrsQueue.push attr, val, oldVal
				return


		newClasses = val and val.split(' ')

		# check removed values
		if typeof oldVal is 'string' and oldVal isnt ''
			oldClasses = oldVal.split ' '
			for name in oldClasses when name isnt ''
				if not newClasses or not utils.has(newClasses, name)
					classes.remove name

		# add new classes
		if typeof val is 'string' and val isnt ''
			newClasses = val.split ' '
			prevIndex = -1
			for name, i in newClasses when name isnt ''
				index = classes.index name
				if prevIndex is -1 and index is -1
					index = classes.length
