mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Space separate event names
This commit is contained in:
committed by
Kevin Sawicki
parent
228fa1abe5
commit
e50aa56d02
@@ -28,12 +28,8 @@ class TokenizedBuffer
|
||||
@id = @constructor.idCounter++
|
||||
@resetScreenLines()
|
||||
@buffer.on "changed.tokenized-buffer#{@id}", (e) => @handleBufferChange(e)
|
||||
@languageMode.on 'grammar-changed', => @resetScreenLines()
|
||||
@languageMode.on 'grammar-updated', => @resetScreenLines()
|
||||
@subscribe syntax, 'grammar-updated', (grammar) =>
|
||||
if grammar.injectionSelector? and @hasTokenForSelector(grammar.injectionSelector)
|
||||
@resetScreenLines()
|
||||
@subscribe syntax, 'grammar-added', (grammar) =>
|
||||
@languageMode.on 'grammar-changed grammar-updated', => @resetScreenLines()
|
||||
@subscribe syntax, 'grammar-updated grammar-added', (grammar) =>
|
||||
if grammar.injectionSelector? and @hasTokenForSelector(grammar.injectionSelector)
|
||||
@resetScreenLines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user