[jopensocial commit] r37 - error fix / appdate uri encode

0 views
Skip to first unread message

codesite...@google.com

unread,
Apr 9, 2009, 9:26:09 PM4/9/09
to jopen...@googlegroups.com
Author: kot...@zerobase.jp
Date: Thu Apr 9 18:25:12 2009
New Revision: 37

Modified:
trunk/src/jopensocial.js

Log:
error fix / appdate uri encode

Modified: trunk/src/jopensocial.js
==============================================================================
--- trunk/src/jopensocial.js (original)
+++ trunk/src/jopensocial.js Thu Apr 9 18:25:12 2009
@@ -319,7 +319,7 @@
peopleData : function() { return
this.newFetchPersonAppDataRequest(idSpec, (key instanceof
Array)?key:[key]); }
}
_request(obj, function(res) {
- if(!res.peopleData||!res.peopleData[id])) {
+ if(!res.peopleData||!res.peopleData[id]) {
callback(null);
return;
}
@@ -375,7 +375,7 @@
if(id&&_cachedData[id]&&_cachedData[id][key]) _cachedData[id][key] =
value;
var obj = {
userData : function() {
- return
this.newUpdatePersonAppDataRequest(opensocial.IdSpec.PersonId.VIEWER, key,
gadgets.util.escapeString(gadgets.json.stringify(value)));
+ return
this.newUpdatePersonAppDataRequest(opensocial.IdSpec.PersonId.VIEWER, key,
encodeURIComponent(gadgets.json.stringify(value)));
}
};
_request(obj, function(res) {

Reply all
Reply to author
Forward
0 new messages