[
http://jira.amdatu.org/jira/browse/AMDATU-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10546#comment-10546
]
Ivo Ladage - van Doorn commented on AMDATU-160:
-----------------------------------------------
Problem seems that the Hub is connected but then disconnected before onLoad is
invoked. When I add this:
gadgets.HubSettings = {
params: {},
onConnect: alert('hub connected!'),
onDisconnect: alert('hub disconnected!')
};
I first see 'hub connected', immediately followed by 'hub disconnected'. By the
way, the Hub creation and gadgets.Hub.connect stuff is already executed in
pubsub-2.js, so should not be invoked in the gadget itself. The gadget itself
only needs to subscribe in the onload.
> While loading a gadget, the pubsub2router (Shindig 2.0) is not initialized
> --------------------------------------------------------------------------
>
> Key: AMDATU-160
> URL: http://jira.amdatu.org/jira/browse/AMDATU-160
> Project: Amdatu
> Issue Type: Bug
> Components: Amdatu OpenSocial
> Affects Versions: 0.0.6
> Reporter: Naftali van der Loon
> Assignee: Ivo Ladage - van Doorn
> Priority: Critical
> Fix For: 0.1.0
>
> Attachments: AMDATU-160.patch, pubsub2gadgets.zip
>
>
> While loading a gadget, the pubsub2router (Shindig 2.0) is not initialized,
> therefore a gadget cannot subscribe to the pubsub2router.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira