 
 # package-global attributes
 packageVersion = null
-unloadHandler = null
 lastHeartbeat = 0
 lastFile = ''
 statusBarTileView = null


  activate: (state) ->
    packageVersion = atom.packages.getLoadedPackage('wakatime').metadata.version
    cleanupOnUninstall()
    setupConfigs()
    @settingChangedObserver = atom.config.observe 'wakatime', settingChangedHandler



enoughTimePassed = (time) ->
  return lastHeartbeat + 120000 < time

setupEventHandlers = (callback) ->
  atom.workspace.observeTextEditors (editor) =>
