mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Destroy AtomEnvironment on window unload
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
7e7f7722e6
commit
e02863e86e
@@ -12,6 +12,7 @@ class WindowEventHandler
|
||||
|
||||
@previousOnbeforeunloadHandler = @window.onbeforeunload
|
||||
@window.onbeforeunload = @handleWindowBeforeunload
|
||||
@addEventListener(@window, 'unload', @handleWindowUnload)
|
||||
@addEventListener(@window, 'focus', @handleWindowFocus)
|
||||
@addEventListener(@window, 'blur', @handleWindowBlur)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user