mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Null out task when deactivated
This commit is contained in:
@@ -3,6 +3,7 @@ _ = require 'underscore'
|
||||
module.exports =
|
||||
projectPaths: null
|
||||
fuzzyFinderView: null
|
||||
loadPathsTask: null
|
||||
|
||||
activate: (state) ->
|
||||
rootView.command 'fuzzy-finder:toggle-file-finder', =>
|
||||
@@ -24,6 +25,7 @@ module.exports =
|
||||
|
||||
deactivate: ->
|
||||
@loadPathsTask?.terminate()
|
||||
@loadPathsTask = null
|
||||
@fuzzyFinderView?.cancel()
|
||||
@fuzzyFinderView = null
|
||||
@projectPaths = null
|
||||
|
||||
Reference in New Issue
Block a user