Remove isInitialEmptyEditor

This commit is contained in:
Ben Ogle 2015-03-03 13:18:02 -08:00
parent 1cdfac008b
commit 5f7015f303
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ describe "the `atom` global", ->
it "opens an empty buffer", -> it "opens an empty buffer", ->
spyOn(atom.workspace, 'open') spyOn(atom.workspace, 'open')
atom.openInitialEmptyEditorIfNecessary() atom.openInitialEmptyEditorIfNecessary()
expect(atom.workspace.open).toHaveBeenCalledWith(null, {isInitialEmptyEditor: true}) expect(atom.workspace.open).toHaveBeenCalledWith(null)
describe "when there is already a buffer open", -> describe "when there is already a buffer open", ->
beforeEach -> beforeEach ->

View File

@ -633,7 +633,7 @@ class Atom extends Model
openInitialEmptyEditorIfNecessary: -> openInitialEmptyEditorIfNecessary: ->
if @getLoadSettings().initialPaths?.length is 0 and @workspace.getPaneItems().length is 0 if @getLoadSettings().initialPaths?.length is 0 and @workspace.getPaneItems().length is 0
@workspace.open(null, {isInitialEmptyEditor: true}) @workspace.open(null)
### ###
Section: Messaging the User Section: Messaging the User