[ 
http://jira.amdatu.org/jira/browse/AMDATUOPENSOCIAL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12000#comment-12000
 ] 

Ivo Ladage - van Doorn commented on AMDATUOPENSOCIAL-86:
--------------------------------------------------------

The arr object is supposed to represent the features available for the current 
view (as features can be specified per view). In our case the current view was 
'default', which is not an actual view and so arr was undefined. Valid views 
are for example 'home' and 'canvas'.

The features per view are defined in container.js, in the "gadgets.features" 
property:

"gadgets.features" : {
  "core.io" : {
    ...
  },
  "views" : {
    "profile" : {
      "isOnlyVisible" : false,
      "urlTemplate" : 
"http://%host%${system/amdatu.contextpath}/gadgets/profile?{var}";,
      "aliases": ["DASHBOARD", "default"]
    },
    "canvas" : {
      "isOnlyVisible" : true,
      "urlTemplate" : 
"http://%host%${system/amdatu.contextpath}/gadgets/canvas?{var}";,
      "aliases" : ["FULL_PAGE"]
    }
  },
  ...
}

See the Sunversion Commits tab for the changes that fixed the error.
                
> When rendering (external) gadgets, sometimes an "arr is undefined" JS error 
> appears and the gadget fails to render
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMDATUOPENSOCIAL-86
>                 URL: http://jira.amdatu.org/jira/browse/AMDATUOPENSOCIAL-86
>             Project: Amdatu OpenSocial
>          Issue Type: Bug
>          Components: Shindig
>    Affects Versions: 0.2.0
>            Reporter: Ivo Ladage - van Doorn
>            Assignee: Ivo Ladage - van Doorn
>             Fix For: 0.2.0
>
>
> This applies for example to this gadget:
> ttp://www.gstatic.com/ig/modules/datetime_v2/datetime_v2.xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to