mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove window.syntax shim
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user