Move show() to atom.coffee

Co-locates it with hide() and focus() which are similar.
This commit is contained in:
Kevin Sawicki
2013-06-03 10:43:16 -07:00
parent 98310e8d7a
commit 3683f7e097
2 changed files with 5 additions and 2 deletions

View File

@@ -206,6 +206,9 @@ window.atom =
focus: ->
remote.getCurrentWindow().focus()
show: ->
remote.getCurrentWindow().show()
hide: ->
remote.getCurrentWindow().hide()

View File

@@ -53,7 +53,7 @@ window.startEditorWindow = ->
keymap.loadUserKeymaps()
atom.requireUserInitScript()
$(window).on 'unload', -> unloadEditorWindow(); false
remote.getCurrentWindow().show()
atom.show()
atom.focus()
window.startConfigWindow = ->
@@ -68,7 +68,7 @@ window.startConfigWindow = ->
atom.activatePackageConfigs()
keymap.loadUserKeymaps()
$(window).on 'unload', -> unloadConfigWindow(); false
remote.getCurrentWindow().show()
atom.show()
atom.focus()
window.unloadEditorWindow = ->