Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map.clear() does not remove the event listener #133

Closed
wf9a5m75 opened this issue Jul 12, 2014 · 0 comments
Closed

Map.clear() does not remove the event listener #133

wf9a5m75 opened this issue Jul 12, 2014 · 0 comments
Labels
Milestone

Comments

@wf9a5m75
Copy link
Member

Map.cleare() method does not remove the event listener that the removed object.


For example:

marker.on(plugin.google.maps.event.MARKER_CLICK, function() {
  alert("clicked 1");
});

then remove the marker using map.clear().

map.clear();

After that, add a marker again.

marker.on(plugin.google.maps.event.MARKER_CLICK, function() {
  alert("clicked 2");
});

You will get "clicked 1" and "clicked 2".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant