mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Guard against possibly null event handler
This commit is contained in:
@@ -96,8 +96,8 @@ window.unloadConfigWindow = ->
|
||||
atom.setWindowState('configView', configView.serialize())
|
||||
atom.saveWindowState()
|
||||
configView.remove()
|
||||
windowEventHandler?.unsubscribe()
|
||||
window.configView = null
|
||||
windowEventHandler.unsubscribe()
|
||||
|
||||
window.onDrop = (e) ->
|
||||
e.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user