You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2013/09/15 22:22:22 UTC
svn commit: r1523499 -
/rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
Author: mfranklin
Date: Sun Sep 15 20:22:22 2013
New Revision: 1523499
URL: http://svn.apache.org/r1523499
Log:
Added a check to make sure actions was enabled before registerring (RAVE-1056)
Modified:
rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
Modified: rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
URL: http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js?rev=1523499&r1=1523498&r2=1523499&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js Sun Sep 15 20:22:22 2013
@@ -116,6 +116,10 @@ define(['underscore', 'core/rave_view_ma
}
function implementActions() {
+ if(!container.actions) {
+ log("Could not initialize actions as the feature is not enabled in the Shindig common container. Check the rave properties file.");
+ return;
+ }
container.actions.registerShowActionsHandler(function(actions) {
_.each(actions, function(action){
//TODO: There is a bug in the shindig code where the action is assumed to launch a new gadget. This works around the issue