mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
No longer need extra event handler
Since config doesn't store default values anymore, this line isn't needed.
This commit is contained in:
@@ -41,9 +41,8 @@ class ConfigPanel extends View
|
||||
value ?= ""
|
||||
editor.setText(value.toString())
|
||||
|
||||
editor.getBuffer().one 'contents-modified', =>
|
||||
editor.getBuffer().on 'contents-modified', =>
|
||||
config.set(name, @parseValue(type, editor.getText()))
|
||||
editor.getBuffer().on 'contents-modified', =>
|
||||
config.set(name, @parseValue(type, editor.getText()))
|
||||
|
||||
parseValue: (type, value) ->
|
||||
switch type
|
||||
|
||||
Reference in New Issue
Block a user