mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
WIP: Handling reload, but need to put js dialog handler in proper place
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user