 		@element.css 'width', "#{@percent}%" if @element
 
 	@done : (progress = 10) ->
-		count = @count
 		if @element
 			# Set width to 100% to indicate we're done loading
 			@element.addClass 'done'


			# Hack to reset the CSS transition
			@element[0].offsetWidth = @element[0].offsetWidth
		++@count

	@start : ->
		return if @alive

class IronRouterProgress
	@prepare : ->
		@element = $ """<div id="iron-router-progress"></div>"""

