mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Rename config "update" event to "updated"
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user