mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
When observing a key path, compare its new & old values structurally
This commit is contained in:
@@ -83,7 +83,7 @@ class Config
|
||||
previousValue = _.clone(value)
|
||||
updateCallback = =>
|
||||
value = @get(keyPath)
|
||||
unless value == previousValue
|
||||
unless _.isEqual(value, previousValue)
|
||||
previousValue = _.clone(value)
|
||||
callback(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user