You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Paul Lindner <pl...@hi5.com> on 2008/02/11 21:53:05 UTC

Re: [jira] Created: (SHINDIG-59) opensocial.Person.getDisplayName returns an object instead of a string

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
plindner@hi5.com