 
     setTimeout =>
       @value = 0
-      @opacity = 1
+      @opacity = originalOpacity
       @_withSpeed(0, => @_updateStyle(true))
     , @speed
 

      @_reset()

  _reset: ->
    setTimeout =>
      @opacity = 0
      @_updateStyle()


  constructor: (@elementSelector) ->
    @value = 0
    @content = ''
    @speed = 300
    # Setting the opacity to a value < 1 fixes a display issue in Safari 6 and
    # iOS 6 where the progress bar would fill the entire page.
    @opacity = 0.99
    @install()

  install: ->
