I committed a fix for this.  If an unstructured name is present we
just return that, otherwise we return the joined together available
fields.

If no one objects to that design I'll close this bug.  Thanks!

On Mon, Feb 11, 2008 at 12:48:08PM -0800, Paul Lindner (JIRA) wrote:
> opensocial.Person.getDisplayName returns an object instead of a string
> 
>                  Key: SHINDIG-59
>                  URL: https://issues.apache.org/jira/browse/SHINDIG-59
>              Project: Shindig
>           Issue Type: Bug
>             Reporter: Paul Lindner
>             Assignee: Paul Lindner
> 
> 
> The specification says that getDisplayName() should return a string.  Instead 
> right now it returns a 
> opensocial.Name object:
> 
> opensocial.Person.prototype.getDisplayName = function() {
>   return this.getField(opensocial.Person.Field.NAME);
> }
> 
> To return a string we should construct a value based off the opensocial.Name 
> object.
> 
> 
> 

-- 
Paul Lindner
hi5 Architect
[EMAIL PROTECTED]

Attachment: pgpLMeVvmJqXp.pgp
Description: PGP signature

Reply via email to