estanley wrote:
> function hasOpenSocial(){
> if( !!opensocial ){
> return true;
> }else{
> return false;
> }
This is exactly the equivalent of:
function hasOpenSocial(){
return !!opensocial
}
Which won't work if opensocial isn't defined. Try:
function hasOpenSocial(){
return typeof opensocial != 'undefined'
}
Cheers!
Rick Measham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial API Definition" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---