On Sep 13, 1:12 pm, Rossko <[email protected]> wrote:
> >http://dev.thekirchners.net/routetest.html
>
> You're still having trouble with scope.
> In your listener, you have
>     alert(allRoutes[rOverlay].description); });
> rOverlay is undeclared (no 'var') so most browsers will assume you
> meant it to be a global variable.
> The value of rOverlay will be left as the last value in the loop.

Ok, where am I supposed to declare rOverlay then (and allRoutes it
seems)?  If I add it at the top of the function, I get the same result
(undefined).
--~--~---------~--~----~------------~-------~--~----~
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