On Sep 15, 1:47 pm, Andrew Leach <[email protected]>
wrote:
>
> GEvent.addListener returns a reference to the listener. You can do
> this:
>   var myListener = GEvent.addListener(...)
> which then allows you to do
>   GEvent.removeListener(myListener)
>
> So you could store the reference to the listener as a property of the
> line itself:
>   allRoutes[rtname].route.listener = GEvent.addListener(...);
> and then you have the relevant listener when you need it.
>
> Does that help?

Aha, I was close ... yes, your suggestion is the solution, and it
works now.  Danke!

And you're right, 12 hours probably wasn't long enough.  My only fear
is that with the traffic on the list, it might get buried and
overlooked, that's why I bumped it again today. :)

Thanks again!
--~--~---------~--~----~------------~-------~--~----~
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