mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Setting value to null/undefined removes key from config
This commit is contained in:
committed by
Corey Johnson & Kevin Sawicki
parent
c923b561e2
commit
1b98bf706e
@@ -139,7 +139,10 @@ _.mixin
|
||||
key = keys.shift()
|
||||
object[key] ?= {}
|
||||
object = object[key]
|
||||
object[keys.shift()] = value
|
||||
if value?
|
||||
object[keys.shift()] = value
|
||||
else
|
||||
delete object[keys.shift()]
|
||||
|
||||
compactObject: (object) ->
|
||||
newObject = {}
|
||||
|
||||
Reference in New Issue
Block a user