Rename Task.terminate to Task.abort

This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-02-19 10:45:55 -08:00
parent 7db83662b5
commit e4f87d522f
4 changed files with 9 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ class FuzzyFinderView extends SelectList
@setLoading("Indexing...")
if @reloadProjectPaths
@loadPathsTask?.terminate()
@loadPathsTask?.abort()
callback = (paths) =>
@projectPaths = paths
@reloadProjectPaths = false
@@ -173,7 +173,7 @@ class FuzzyFinderView extends SelectList
detach: ->
super
@loadPathsTask?.terminate()
@loadPathsTask?.abort()
attach: ->
super

View File

@@ -22,7 +22,7 @@ module.exports =
editSession.lastOpened = state[editSession.getPath()]
deactivate: ->
@loadPathsTask?.terminate()
@loadPathsTask?.abort()
@loadPathsTask = null
@fuzzyFinderView?.cancel()
@fuzzyFinderView = null

View File

@@ -15,7 +15,7 @@ module.exports =
rootView.on 'editor:attached', (e, editor) => @enableSnippetsInEditor(editor)
deactivate: ->
@loadSnippetsTask?.terminate()
@loadSnippetsTask?.abort()
loadAll: ->
@loadSnippetsTask = new LoadSnippetsTask(this)