You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by jo...@apache.org on 2009/12/04 03:13:10 UTC
svn commit: r887034 -
/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Author: johnh
Date: Fri Dec 4 02:13:09 2009
New Revision: 887034
URL: http://svn.apache.org/viewvc?rev=887034&view=rev
Log:
Initialize child-to-container communication at init time rather than quasi-synchronously. Proximally, fixes child-to-container initialization when the child is a "generic" (non-gadget) IFRAME.
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Modified: incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=887034&r1=887033&r2=887034&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js Fri Dec 4 02:13:09 2009
@@ -530,11 +530,6 @@
}
}
- // gadgets.config might not be available, such as when serving container js.
- if (isChild) {
- setupReceiver('..');
- }
-
return /** @scope gadgets.rpc */ {
/**
* Registers an RPC service.
@@ -817,6 +812,9 @@
if (transport.init(process, transportReady) === false) {
transport = fallbackTransport;
}
+ if (isChild) {
+ setupReceiver('..');
+ }
},
/** Returns the window keyed by the ID. null/".." for parent, else child */