Cleanup for v.NEXT: .list and .totalResults

1 view
Skip to first unread message

Lane LiaBraaten

unread,
Jun 18, 2009, 11:28:20 AM6/18/09
to opensocial-and-gadgets-spec
Some examples in the osapi section examples say "You have " + ownerFriends.length + " friends".  This is both logically and syntactically incorrect :(

Since the request probably only grabbed 20 friends by default, we actually want the total number of friends which is returned in ownerFriends.totalResults.

If we did want to display the number of friends returned in the request, we'd have to do ownerFriends.list.length.

-Lane

Adam Winer

unread,
Jun 26, 2009, 10:47:12 AM6/26/09
to opensocial-an...@googlegroups.com
I don't think this needs to wait for v.Next - the example here is just wrong, and should be treated as typos.
Reply all
Reply to author
Forward
0 new messages