No longer need extra event handler

Since config doesn't store default values anymore, this line isn't
needed.
This commit is contained in:
probablycorey 2013-05-02 12:05:35 -07:00
parent c13b291c64
commit f0c8c044c9

View File

@ -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