-'use strict'
 angular.module('hoay.dates', [
   'ngCookies'
   'pascalprecht.translate'


      recount = attrs.counterRestart or false
      max = scope.$eval(attrs.counterMax)

      scope.$watch max, (value)->
        if max isnt undefined

      updateElement = (value)->
        $(element)[0].text parseInt(value)

      element.bind '$destroy', ->
        # cancel timeout
        $timeout.cancel timeoutPromise
        # cancel tween
        tweenable.stop()


]
