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


Reply via email to