Use params instead of loadSettings

This commit is contained in:
Antonio Scandurra
2015-10-14 13:01:54 +02:00
parent c5860ce6b6
commit 789af9fc69

View File

@@ -100,12 +100,12 @@ class AtomEnvironment extends Model
# Call .loadOrCreate instead
constructor: (params={}) ->
{@applicationDelegate, @window, @document} = params
{@applicationDelegate, @window, @document, configDirPath} = params
@state = {version: @constructor.version}
@loadTime = null
{devMode, safeMode, resourcePath, configDirPath} = @getLoadSettings()
{devMode, safeMode, resourcePath} = @getLoadSettings()
@emitter = new Emitter
@disposables = new CompositeDisposable