You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2009/11/02 21:58:25 UTC
svn commit: r832103 - in
/incubator/shindig/trunk/features/src/main/javascript/features:
opensocial-0.7/opensocial7to8.js opensocial-jsonrpc/jsonrpccontainer.js
Author: lindner
Date: Mon Nov 2 20:58:25 2009
New Revision: 832103
URL: http://svn.apache.org/viewvc?rev=832103&view=rev
Log:
SHINDIG-860 | Patch from Henning Schmiedehausen | Shindig javascript feature code uses new opensocial.IdSpec but should not
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/opensocial-0.7/opensocial7to8.js
incubator/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js
Modified: incubator/shindig/trunk/features/src/main/javascript/features/opensocial-0.7/opensocial7to8.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/opensocial-0.7/opensocial7to8.js?rev=832103&r1=832102&r2=832103&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/opensocial-0.7/opensocial7to8.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/opensocial-0.7/opensocial7to8.js Mon Nov 2 20:58:25 2009
@@ -93,10 +93,10 @@
function translateIdSpec(oldIdSpec) {
if (oldIdSpec == 'OWNER_FRIENDS') {
- return new opensocial.IdSpec({userId : 'OWNER', groupId : 'FRIENDS'});
+ return opensocial.newIdSpec({userId : 'OWNER', groupId : 'FRIENDS'});
} else if (oldIdSpec == 'VIEWER_FRIENDS') {
- return new opensocial.IdSpec({userId : 'VIEWER', groupId : 'FRIENDS'});
+ return opensocial.newIdSpec({userId : 'VIEWER', groupId : 'FRIENDS'});
} else {
- return new opensocial.IdSpec({userId : oldIdSpec});
+ return opensocial.newIdSpec({userId : oldIdSpec});
}
};
Modified: incubator/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js?rev=832103&r1=832102&r2=832103&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js Mon Nov 2 20:58:25 2009
@@ -132,7 +132,7 @@
opt_callback = opt_callback || function(){};
var req = opensocial.newDataRequest();
- var viewer = new opensocial.IdSpec({'userId' : 'VIEWER'});
+ var viewer = opensocial.newIdSpec({'userId' : 'VIEWER'});
req.add(this.newCreateActivityRequest(viewer, activity), 'key');
req.send(function(response) {
opt_callback(response.get('key'));
@@ -264,7 +264,7 @@
};
JsonRpcContainer.prototype.makeIdSpec = function(id) {
- return new opensocial.IdSpec({'userId' : id});
+ return opensocial.newIdSpec({'userId' : id});
};
JsonRpcContainer.prototype.translateIdSpec = function(newIdSpec) {