Fix remaining tests

This commit is contained in:
Antonio Scandurra
2017-03-12 11:49:48 +01:00
parent b1704ee7e6
commit ea440148d8
5 changed files with 15 additions and 11 deletions

View File

@@ -792,8 +792,13 @@ class AtomEnvironment extends Model
uninstallUncaughtErrorHandler: ->
@window.onerror = @previousWindowErrorHandler
installWindowEventHandler: ->
@windowEventHandler = new WindowEventHandler({atomEnvironment: this, @applicationDelegate})
@windowEventHandler.initialize(@window, @document)
uninstallWindowEventHandler: ->
@windowEventHandler?.unsubscribe()
@windowEventHandler = null
###
Section: Messaging the User