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) {