Permalink
Browse files

still testing

  • Loading branch information...
1 parent c6ff24a commit 5eb905e4b7b90f1aa6a992c98855a191702ef50c @phated committed Nov 15, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 slides/api-slides/hangout-example.js
@@ -9,8 +9,8 @@ var Participant = {
return tabSet.addTab(participant.person.displayName);
},
getActivities: function() {
- $.get('https://www.googleapis.com/plus/v1/people/' + gplusId + '/activities/public?key=AIzaSyB14Ua7k5_wusxHTQEH3sqmglO7MHjHPCI&maxResults=5&pp=1&alt=json', function(data){
- return data;
+ $.get('https://www.googleapis.com/plus/v1/people/' + this.gplusId + '/activities/public?key=AIzaSyB14Ua7k5_wusxHTQEH3sqmglO7MHjHPCI&maxResults=5&pp=1&alt=json', function(data){
+ this.activities = data;
}, "jsonp");
}
};
@@ -29,6 +29,7 @@ function init() {
participants[index].activities = participants[index].getActivities();
}
tabIds[index] = (participants[index].newTab(hangoutParticipant, tabSet));
+ $('#' + tabsIds[index]).append(participants[index].activities);
});
//var tabIds = addTabForEachPerson(tabs, participants);

0 comments on commit 5eb905e

Please sign in to comment.