Space separate event names

This commit is contained in:
Kevin Sawicki & Nathan Sobo 2013-04-22 17:34:43 -07:00 committed by Kevin Sawicki
parent 228fa1abe5
commit e50aa56d02

View File

@ -28,12 +28,8 @@ class TokenizedBuffer
@id = @constructor.idCounter++ @id = @constructor.idCounter++
@resetScreenLines() @resetScreenLines()
@buffer.on "changed.tokenized-buffer#{@id}", (e) => @handleBufferChange(e) @buffer.on "changed.tokenized-buffer#{@id}", (e) => @handleBufferChange(e)
@languageMode.on 'grammar-changed', => @resetScreenLines() @languageMode.on 'grammar-changed grammar-updated', => @resetScreenLines()
@languageMode.on 'grammar-updated', => @resetScreenLines() @subscribe syntax, 'grammar-updated grammar-added', (grammar) =>
@subscribe syntax, 'grammar-updated', (grammar) =>
if grammar.injectionSelector? and @hasTokenForSelector(grammar.injectionSelector)
@resetScreenLines()
@subscribe syntax, 'grammar-added', (grammar) =>
if grammar.injectionSelector? and @hasTokenForSelector(grammar.injectionSelector) if grammar.injectionSelector? and @hasTokenForSelector(grammar.injectionSelector)
@resetScreenLines() @resetScreenLines()