Rename config "update" event to "updated"

This commit is contained in:
Nathan Sobo
2013-01-02 13:31:50 -07:00
parent 6d9402b5c9
commit 0f59f5f58a

View File

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