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:
Kevin Sawicki
2013-10-08 17:01:37 -07:00
parent 349ba86b92
commit 662262ab82

View File

@@ -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'