WIP: Handling reload, but need to put js dialog handler in proper place

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-27 17:10:28 -07:00
parent d20ba7171a
commit 8fcf2af5a6
6 changed files with 39 additions and 62 deletions

View File

@@ -94,7 +94,7 @@ class RootView extends View
delete @extensions[extension.name]
deactivate: ->
atom.rootViewStates[$windowNumber] = JSON.stringify(@serialize())
# atom.rootViewStates[$windowNumber] = JSON.stringify(@serialize()) # TODO: Reinstate
@deactivateExtension(extension) for name, extension of @extensions
@remove()

View File

@@ -35,14 +35,14 @@ windowAdditions =
@shutdown()
false
$(window).focus()
atom.windowOpened this
# atom.windowOpened this # TODO: Reinstate this!
shutdown: ->
@rootView.deactivate()
$(window).unbind('focus')
$(window).unbind('blur')
$(window).off('before')
atom.windowClosed this
# atom.windowClosed this # TODO: Reinstate this!
# Note: RootView assigns itself on window on initialization so that
# window.rootView is available when loading user configuration