mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use getter on GrammarRegistry
This commit is contained in:
@@ -79,7 +79,7 @@ class Workspace extends Model
|
||||
addGrammar(editor.getGrammar()) for editor in editors
|
||||
|
||||
if editors.length > 0
|
||||
for grammar in atom.syntax.grammars when grammar.injectionSelector
|
||||
for grammar in atom.syntax.getGrammars() when grammar.injectionSelector
|
||||
addGrammar(grammar)
|
||||
|
||||
_.uniq(packageNames)
|
||||
|
||||
Reference in New Issue
Block a user