Remove window.syntax shim

This commit is contained in:
Kevin Sawicki
2013-11-19 16:03:33 -08:00
parent d1f1b494cf
commit 46e85fac87
3 changed files with 6 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ class TokenizedBuffer
bufferPath: @buffer.getPath()
tabLength: tabLength ? atom.config.get('editor.tabLength') ? 2
@subscribe syntax, 'grammar-added grammar-updated', (grammar) =>
@subscribe atom.syntax, 'grammar-added grammar-updated', (grammar) =>
if grammar.injectionSelector?
@resetTokenizedLines() if @hasTokenForSelector(grammar.injectionSelector)
else

View File

@@ -24,7 +24,6 @@ window.setUpEnvironment = (windowMode) ->
atom.initialize()
#TODO remove once all packages use the atom global
window.config = atom.config
window.syntax = atom.syntax
# Set up the default event handlers and menus for a non-editor windows.
#