 # 
 # countUp.js
 # by @inorganik
-# v 0.0.5
+# v 0.0.6
 #
 # Example:
 # numAnim = new countUp "SomeElementYouWantToAnimate", 99.99, 2, 1.5
 # numAnim.start()
 #
 ###
-
-window.requestAnimationFrame =
-  window.requestAnimationFrame or 
-  window.mozRequestAnimationFrame or
-  window.webkitRequestAnimationFrame or 
-  window.msRequestAnimationFrame
 
 # target = id of Html element where counting occurs
 # startVal = the value you want to start at

      x1 = x1.replace(rgx, '$1' + ',' + '$2')

    x1 + x2


  # Robert Penner's easeOutExpo
  @easeOutExpo = (t, b, c, d) ->
    c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b

  @count = (timestamp) ->
    @startTime = timestamp if @startTime is null

    @timestamp = timestamp

    progress = timestamp - @startTime
      
    # to ease or not to ease is the question
    if @useEasing
      if @countDown
        i = @easeOutExpo progress, 0, startVal - endVal, @duration
        @frameVal = startVal - i
      else
        @frameVal = @easeOutExpo(progress, startVal, endVal - startVal, @duration)
    else
      if @countDown
        i = (startVal - endVal) * (progress / @duration)
        @frameVal = startVal - i
      else
        @frameVal = startVal + (endVal - startVal) * (progress / @duration)
        
    # decimal
    @frameVal = Math.round(@frameVal * @dec) / @dec
