mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use deep clone for load settings
The new initialSize load setting has a nested object which should be cloned as well.
This commit is contained in:
@@ -101,8 +101,8 @@ class Atom
|
||||
#
|
||||
# Returns an object containing all the load setting key/value pairs.
|
||||
getLoadSettings: ->
|
||||
@loadSettings ?= _.clone(@getCurrentWindow().loadSettings)
|
||||
_.clone(@loadSettings)
|
||||
@loadSettings ?= _.deepClone(@getCurrentWindow().loadSettings)
|
||||
_.deepClone(@loadSettings)
|
||||
|
||||
deserializeProject: ->
|
||||
Project = require './project'
|
||||
|
||||
Reference in New Issue
Block a user