mirror of
https://github.com/atom/atom.git
synced 2026-02-02 02:35:00 -05:00
Clone defaults in config constructor so they aren't mutated.
This fixes failures caused pollution of state between specs
This commit is contained in:
@@ -18,8 +18,8 @@ class Config
|
||||
|
||||
constructor: ->
|
||||
@settings =
|
||||
core: require('root-view').configDefaults
|
||||
editor: require('editor').configDefaults
|
||||
core: _.clone(require('root-view').configDefaults)
|
||||
editor: _.clone(require('editor').configDefaults)
|
||||
|
||||
load: ->
|
||||
@loadUserConfig()
|
||||
|
||||
Reference in New Issue
Block a user