From 0f59f5f58a5ac6fd74015ad8eccae9eca2316d05 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 2 Jan 2013 13:31:50 -0700 Subject: [PATCH] Rename `config` "update" event to "updated" --- src/app/config.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/config.coffee b/src/app/config.coffee index 0a7e1b181..aed08732f 100644 --- a/src/app/config.coffee +++ b/src/app/config.coffee @@ -73,14 +73,14 @@ class Config previousValue = _.clone(value) callback(value) - subscription = { cancel: => @off 'update', updateCallback } - @on 'update', updateCallback + subscription = { cancel: => @off 'updated', updateCallback } + @on 'updated', updateCallback callback(value) subscription update: -> @save() - @trigger 'update' + @trigger 'updated' save: -> fs.write(configJsonPath, JSON.stringify(@settings, undefined, 2) + "\n")