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


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

	@start : ->
		return if @alive

		@element.css 'width', "#{@percent}%" if @element

	@done : (progress = 10) ->
		if @element
			# Set width to 100% to indicate we're done loading
			@element.addClass 'done'
