Use local config reference in TextEditorRegistry

This commit is contained in:
Max Brunsfeld
2016-07-11 13:20:13 -07:00
parent 596cc13f6a
commit d70c8d029b

View File

@@ -88,14 +88,14 @@ export default class TextEditorRegistry {
const configOptions = {scope: editor.getRootScopeDescriptor()}
for (const [settingKey, setterName] of EDITOR_SETTER_NAMES_BY_SETTING_KEY) {
editor[setterName](atom.config.get(settingKey, configOptions))
editor[setterName](this.config.get(settingKey, configOptions))
}
const updateTabTypes = () => {
editor.setSoftTabs(shouldEditorUseSoftTabs(
editor,
atom.config.get('editor.tabType', configOptions),
atom.config.get('editor.softTabs', configOptions)
this.config.get('editor.tabType', configOptions),
this.config.get('editor.softTabs', configOptions)
))
}