From a6e60762becccfc8ed6db2903cdc984c6b0b831c Mon Sep 17 00:00:00 2001 From: Anatoli Date: Fri, 10 Mar 2017 17:20:35 -0300 Subject: [PATCH] Make an option to *always* restore the last session, no matter how Atom is invoked (#9643), part5: use _.deepClone from underscore-plus --- package.json | 1 - src/main-process/atom-application.coffee | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index a5b5a5f2e..ed3756a38 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "key-path-helpers": "^0.4.0", "less-cache": "0.23", "line-top-index": "0.2.0", - "lodash.clonedeep": "*", "marked": "^0.3.6", "minimatch": "^3.0.3", "mocha": "2.5.1", diff --git a/src/main-process/atom-application.coffee b/src/main-process/atom-application.coffee index c1c7168ae..02a5e68de 100644 --- a/src/main-process/atom-application.coffee +++ b/src/main-process/atom-application.coffee @@ -15,7 +15,6 @@ net = require 'net' url = require 'url' {EventEmitter} = require 'events' _ = require 'underscore-plus' -cloneDeep = require 'lodash.clonedeep' FindParentDir = null Resolve = null @@ -113,7 +112,7 @@ class AtomApplication launch: (options) -> if options.pathsToOpen?.length > 0 or options.urlsToOpen?.length > 0 or options.test or options.benchmark or options.benchmarkTest if @config.get('core.restorePreviousWindowsOnStart') is 'always' - @loadState(cloneDeep(options)) + @loadState(_.deepClone(options)) @openWithOptions(options) else @loadState(options) or @openPath(options)