Revert "Merge pull request #4631 from atom/mb-new-config-api"

This reverts commit 5147fb6a8b, reversing
changes made to 9bbbb58084.
This commit is contained in:
Max Brunsfeld
2014-12-16 15:27:39 -08:00
parent fdd55dfd27
commit dc2a453986
12 changed files with 259 additions and 479 deletions

View File

@@ -84,10 +84,10 @@ class TokenizedBuffer extends Model
@currentGrammarScore = score ? grammar.getScore(@buffer.getPath(), @buffer.getText())
@subscribe @grammar.onDidUpdate => @retokenizeLines()
@configSettings = tabLength: atom.config.get('editor.tabLength', scope: @rootScopeDescriptor)
@configSettings = tabLength: atom.config.get(@rootScopeDescriptor, 'editor.tabLength')
@grammarTabLengthSubscription?.dispose()
@grammarTabLengthSubscription = atom.config.onDidChange 'editor.tabLength', scope: @rootScopeDescriptor, ({newValue}) =>
@grammarTabLengthSubscription = atom.config.onDidChange @rootScopeDescriptor, 'editor.tabLength', ({newValue}) =>
@configSettings.tabLength = newValue
@retokenizeLines()
@subscribe @grammarTabLengthSubscription