mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use -> arrows
This commit is contained in:
@@ -335,7 +335,7 @@ class Config
|
||||
deprecate "Config::observe no longer supports options. #{message}"
|
||||
|
||||
callback(_.clone(@get(keyPath))) unless options.callNow == false
|
||||
@emitter.on 'did-change', (event) =>
|
||||
@emitter.on 'did-change', (event) ->
|
||||
callback(event.newValue) if keyPath? and keyPath.indexOf(event?.keyPath) is 0
|
||||
|
||||
# Essential: Add a listener for changes to a given key path. If `keyPath` is
|
||||
@@ -355,7 +355,7 @@ class Config
|
||||
callback = keyPath
|
||||
keyPath = undefined
|
||||
|
||||
@emitter.on 'did-change', (event) =>
|
||||
@emitter.on 'did-change', (event) ->
|
||||
callback(event) if not keyPath? or (keyPath? and keyPath.indexOf(event?.keyPath) is 0)
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user