Guard against possibly null event handler

This commit is contained in:
Kevin Sawicki
2013-05-16 15:49:53 -07:00
parent a29015551c
commit d7a238b5ec

View File

@@ -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()