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

@@ -71,7 +71,7 @@
"base16-tomorrow-dark-theme": "0.6.0",
"solarized-dark-syntax": "0.4.0",
"archive-view": "0.13.0",
"autocomplete": "0.12.0",
"autocomplete": "0.13.0",
"autoflow": "0.5.0",
"autosave": "0.6.0",
"bookmarks": "0.10.0",
@@ -87,7 +87,7 @@
"git-diff": "0.13.0",
"github-sign-in": "0.9.0",
"go-to-line": "0.8.0",
"grammar-selector": "0.8.0",
"grammar-selector": "0.9.0",
"image-view": "0.8.0",
"keybinding-resolver": "0.3.0",
"link": "0.7.0",
@@ -96,7 +96,7 @@
"package-generator": "0.19.0",
"release-notes": "0.11.0",
"settings-view": "0.42.0",
"snippets": "0.13.0",
"snippets": "0.14.0",
"spell-check": "0.13.0",
"status-bar": "0.16.0",
"styleguide": "0.10.0",
@@ -113,7 +113,7 @@
"language-clojure": "0.1.0",
"language-coffee-script": "0.3.0",
"language-css": "0.2.0",
"language-gfm": "0.8.0",
"language-gfm": "0.9.0",
"language-git": "0.3.0",
"language-go": "0.2.0",
"language-html": "0.2.0",
@@ -139,7 +139,7 @@
"language-sql": "0.2.0",
"language-text": "0.2.0",
"language-todo": "0.2.0",
"language-toml": "0.6.0",
"language-toml": "0.7.0",
"language-xml": "0.2.0",
"language-yaml": "0.1.0"
},

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.
#