Fix onDidChange usage

This commit is contained in:
Ben Ogle
2014-09-29 15:37:43 -07:00
parent f3ed3dc357
commit 9808264b7f

View File

@@ -35,7 +35,7 @@ class TokenizedBuffer extends Model
@subscribe @$tabLength.changes, (tabLength) => @retokenizeLines()
@subscribe atom.config.onDidChange 'editor.tabLength', (value) => @setTabLength(value)
@subscribe atom.config.onDidChange 'editor.tabLength', ({newValue}) => @setTabLength(newValue)
@reloadGrammar()