diff --git a/lib/spell-check-view.coffee b/lib/spell-check-view.coffee index 966614bf..1cc50911 100644 --- a/lib/spell-check-view.coffee +++ b/lib/spell-check-view.coffee @@ -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 => @@ -59,7 +59,7 @@ class SpellCheckView @correctionsView?.remove() unsubscribeFromBuffer: -> - @detroyMarkers() + @destroyMarkers() if @buffer? @bufferDisposable.dispose() @@ -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()