Repository: rave
Updated Branches:
  refs/heads/master 6ae81b787 -> 3f6ce8581


RAVE-1269 | Errors in opensocial gadget rendering should callback with an error


Project: http://git-wip-us.apache.org/repos/asf/rave/repo
Commit: http://git-wip-us.apache.org/repos/asf/rave/commit/623fe152
Tree: http://git-wip-us.apache.org/repos/asf/rave/tree/623fe152
Diff: http://git-wip-us.apache.org/repos/asf/rave/diff/623fe152

Branch: refs/heads/master
Commit: 623fe1521eb3d09f1e262a6bf11e236d353640b1
Parents: aab1719
Author: Stanton Sievers <[email protected]>
Authored: Mon Aug 11 11:15:18 2014 -0400
Committer: Stanton Sievers <[email protected]>
Committed: Mon Aug 11 11:15:18 2014 -0400

----------------------------------------------------------------------
 .../src/main/webapp/static/script/core/rave_opensocial.js           | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/rave/blob/623fe152/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
----------------------------------------------------------------------
diff --git 
a/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js 
b/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
index 7dea976..3a90cd0 100644
--- 
a/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
+++ 
b/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
@@ -218,6 +218,7 @@ define(['underscore', 'core/rave_view_manager', 
'core/rave_api', 'core/rave_open
         exports.renderWidget = function (widget, el, opts) {
             if (widget.error) {
                 widget.renderError(el, widget.error.message);
+                opts && opts.callback && opts.callback({'error' : 
widget.error});
                 return;
             }
             opts = opts || {};

Reply via email to