On Oct 9, 2:57 pm, JP <[EMAIL PROTECTED]> wrote:
> On Oct 9, 2:40 pm, marcelo <[EMAIL PROTECTED]> wrote:
>
> > It means that the parameter is 'optional'.
>
> I get that a ? at the end of a param name in Google API reference
> means its optional, but does appending a ? to a variable name in
> javascript make it optional?
No. In javascript pretty much all arguments are optional, if they
aren't assigned in the call they will have a null value (which may be
a problem it the function assumes it will not be null), if they aren't
used by the function, they aren't used by the function.  This notation
means that the function will do something reasonable if the argument
is null (in most cases).

> Or is this just a form of notation Google's using to simplify the 
> documentation
Yes.

  -- Larry


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to