mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
🐛 Install WindowEventHandler in ctor
This commit is contained in:
@@ -10,6 +10,7 @@ describe "WindowEventHandler", ->
|
||||
[projectPath, windowEventHandler] = []
|
||||
|
||||
beforeEach ->
|
||||
atom.windowEventHandler.unsubscribe()
|
||||
spyOn(atom, 'hide')
|
||||
initialPath = atom.project.getPaths()[0]
|
||||
spyOn(atom, 'getLoadSettings').andCallFake ->
|
||||
|
||||
@@ -194,6 +194,7 @@ class AtomEnvironment extends Model
|
||||
@registerDefaultViewProviders()
|
||||
|
||||
@installUncaughtErrorHandler()
|
||||
@windowEventHandler = new WindowEventHandler(this)
|
||||
|
||||
setConfigSchema: ->
|
||||
@config.setSchema null, {type: 'object', properties: _.clone(require('./config-schema'))}
|
||||
@@ -597,7 +598,6 @@ class AtomEnvironment extends Model
|
||||
@setBodyPlatformClass()
|
||||
|
||||
document.head.appendChild(@styles.buildStylesElement())
|
||||
@windowEventHandler = new WindowEventHandler(this)
|
||||
|
||||
@packages.loadPackages()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user