 	clearData: ->
 		expect(@data).toBe.object()
 
-		while length = @usedUnit.length
+		while length = @usedUnits.length
 			@popItem length - 1
 
 		@

		unit = new File.Unit self, name, @bodyNode
		@unit = unit.id
		@bodyNode.parent = undefined

		@usedUnits = []

	unit: ''
	storage: null


		clone.storage = utils.cloneDeep @storage
		clone.array = null
		clone.usedUnits = []

		clone.updateItem = @updateItem.bind clone
		clone.insertItem = @insertItem.bind clone
