You could always push your listeners into an array with some unique
identifier that you can match to the marker you are removing and then remove
the listener when you remove the marker.  I use this method just to ensure
that the listeners get removed asap.

On Wed, Jun 16, 2010 at 2:46 AM, Ben Appleton <[email protected]> wrote:

> That should not be necessary.  If you have set the map property to null,
> the marker dom nodes will have been removed, so you are protected from
> causing leaks in Internet Explorer due to DOM-JS cycles.
>
> On 16 Jun 2010 17:13, "Leonid Rozenblyum" <[email protected]> wrote:
>
> Thanks for the very clear answer.
> So if the event listener contains link to the marker in the closure,
> we should keep the listener, and then remove it when needed.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript AP...
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to