Destroy AtomEnvironment on window unload

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Antonio Scandurra
2016-08-12 18:15:51 +02:00
committed by Nathan Sobo
parent 7e7f7722e6
commit e02863e86e

View File

@@ -12,6 +12,7 @@ class WindowEventHandler
@previousOnbeforeunloadHandler = @window.onbeforeunload
@window.onbeforeunload = @handleWindowBeforeunload
@addEventListener(@window, 'unload', @handleWindowUnload)
@addEventListener(@window, 'focus', @handleWindowFocus)
@addEventListener(@window, 'blur', @handleWindowBlur)