From 0b668b8e175e5e48db6fe5eb7d6e763495bed5f9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 11 Dec 2014 09:07:50 -0800 Subject: [PATCH] Minor fixes on --- atom/renderer/lib/web-view/guest-view-internal.coffee | 3 ++- atom/renderer/lib/web-view/web-view.coffee | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/atom/renderer/lib/web-view/guest-view-internal.coffee b/atom/renderer/lib/web-view/guest-view-internal.coffee index 96a8c6edea7..5757536ac4e 100644 --- a/atom/renderer/lib/web-view/guest-view-internal.coffee +++ b/atom/renderer/lib/web-view/guest-view-internal.coffee @@ -40,7 +40,8 @@ module.exports = ipc.once "ATOM_SHELL_RESPONSE_#{requestId}", callback attachGuest: (elementInstanceId, guestInstanceId, params, callback) -> - ipc.send 'ATOM_SHELL_GUEST_VIEW_MANAGER_ATTACH_GUEST', elementInstanceId, guestInstanceId, params + requestId++ + ipc.send 'ATOM_SHELL_GUEST_VIEW_MANAGER_ATTACH_GUEST', elementInstanceId, guestInstanceId, params, requestId ipc.once "ATOM_SHELL_RESPONSE_#{requestId}", callback webFrame.attachGuest elementInstanceId diff --git a/atom/renderer/lib/web-view/web-view.coffee b/atom/renderer/lib/web-view/web-view.coffee index c30d04e7392..e095c0b74d6 100644 --- a/atom/renderer/lib/web-view/web-view.coffee +++ b/atom/renderer/lib/web-view/web-view.coffee @@ -105,7 +105,7 @@ class WebViewImpl return unless @guestInstanceId - guestViewInternal.attachGuest @internalInstanceId, @guestInstanceId, params, (w) => @contentWindow = w + guestViewInternal.attachGuest @internalInstanceId, @guestInstanceId, @buildAttachParams(), (w) => @contentWindow = w onSizeChanged: (webViewEvent) -> newWidth = webViewEvent.newWidth