Clear GrammarRegistry in AtomEnvironment::reset

This commit is contained in:
Nathan Sobo
2015-10-13 20:09:56 -06:00
parent 3ef6a9b63b
commit 74d644ac73
4 changed files with 3 additions and 5 deletions

View File

@@ -246,6 +246,8 @@ class AtomEnvironment extends Model
@commands.clear()
@registerDefaultCommands()
@grammars.clear()
@styles.restoreSnapshot(params?.stylesSnapshot ? [])
@menu.clear()

View File

@@ -123,6 +123,3 @@ class GrammarRegistry extends FirstMate.GrammarRegistry
clearGrammarOverrides: ->
@grammarOverridesByPath = {}
undefined
clearObservers: ->
@emitter = new Emitter