removeWindow -> remove

This commit is contained in:
Kevin Sawicki 2015-12-10 17:22:05 -08:00
parent 49ca7509c7
commit 8401ece537

View file

@ -13,13 +13,13 @@ class BrowserWindowProxy
@getOrCreate: (guestId) ->
@proxies[guestId] ?= new BrowserWindowProxy(guestId)
@removeWindow: (guestId) ->
@remove: (guestId) ->
delete @proxies[guestId]
constructor: (@guestId) ->
@closed = false
ipcRenderer.once "ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_CLOSED_#{@guestId}", =>
BrowserWindowProxy.removeWindow(@guestId)
BrowserWindowProxy.remove(@guestId)
@closed = true
close: ->