Don't close the window when the last editor is closed. Focus the root view instead.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-11 17:42:02 -06:00
parent ceaad1798b
commit 8a4b5b13bb
2 changed files with 13 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ class RootView extends View
if @editors().length
@editors()[0].focus()
else
window.close()
@focus()
setTitle: (title='untitled') ->
document.title = title