   $scope.tickets = []
   $scope.selectedTicket = []
 
+  trackedTime = {}
 
   ###
    Initialize.

   on timer stopped, send time entry.
  ###
  $scope.$on 'timer-stopped', (e, time) ->
    postEntry(time.minutes)


  ###

timeTracker.controller 'TimerCtrl', ($scope, $timeout, $account, $redmine, $ticket, $message, state) ->

  ONE_MINUTE = 1
  COMMENT_MAX = 255
  SWITCHING_TIME = 300

  $scope.state = state
  $scope.projects = {}
