Labs/Jetpack/JEP/15: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 61: Line 61:
   jetpack.notifications.show( person["durationOfRelationship"] );
   jetpack.notifications.show( person["durationOfRelationship"] );


person = jetpack.people.find(function(person) {
var people = jetpack.people.find(function(person) {
   return person.isStrongTie;
   return person.isStrongTie;
});
});
if ( person )
if ( people ) {
  jetpack.notifications.show( person["fullName"] );
  for (var person in people ) {
    jetpack.notifications.show( person["fullName"] );
  }
}
</pre>
</pre>
14

edits