Just for clarity I wanted to specify that in my example above, data is
an object returned by newFetchPersonAppDataRequest then
get("key").getData() rather than just get("key")... So

var data;
function handleRet(ret){
  data = ret.get("key").getData() == null ? {} :
ret.get("key").getData();
}

On Nov 15, 10:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> That absolutely did the trick, thanks! I kept looking for a method,
> instead of just using the index. D'oh.
>
> From what I know of maps (which isn't a ton), since you can't just
> iterate through them without a list of the keys, since the map itself
> doesn't store anything other than the key-value pairings. They seem to
> be very similar to Python's dictionaries (which I've worked a bit more
> with), which leads me to beleive that there is a method that would
> return the list of keys in the map. I've tried some of the obvious
> possibilities (getKeys, keys, keyList, listKeys, etc), but no dice so
> far.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition (was OpenSocial Developers)" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to