No need to send message to embedder after it is closed

This commit is contained in:
Cheng Zhao 2015-07-06 21:28:09 +08:00
parent 85a4ff83da
commit f8786e9d17

View file

@ -21,7 +21,6 @@ createGuest = (embedder, url, frameName, options) ->
# guest is closed by user then we should prevent |embedder| from double
# closing guest.
closedByEmbedder = ->
embedder.send 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_CLOSED', guest.id
guest.removeListener 'closed', closedByUser
guest.destroy()
closedByUser = ->