Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Correct misspelled method detroyMarkers #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/spell-check-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SpellCheckView
@correctionsView = new CorrectionsView(@editor, @getCorrections(marker), marker)

@task.onDidSpellCheck (misspellings) =>
@detroyMarkers()
@destroyMarkers()
@addMarkers(misspellings) if @buffer?

@disposables.add @editor.onDidChangePath =>
Expand Down Expand Up @@ -59,7 +59,7 @@ class SpellCheckView
@correctionsView?.remove()

unsubscribeFromBuffer: ->
@detroyMarkers()
@destroyMarkers()

if @buffer?
@bufferDisposable.dispose()
Expand All @@ -77,7 +77,7 @@ class SpellCheckView
grammar = @editor.getGrammar().scopeName
_.contains(atom.config.get('spell-check.grammars'), grammar)

detroyMarkers: ->
destroyMarkers: ->
@markerLayer.destroy()
@markerLayerDecoration.destroy()
@initializeMarkerLayer()
Expand Down