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

Unmounting an InfoBox removes all listeners. #412

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

tymarats
Copy link
Contributor

@tymarats tymarats commented Dec 22, 2016

Hi,

I want to address an obscure issue that arises from failing to clean up InfoBox listeners on unmount. Taking a look at the end of the file here: https://github.com/googlemaps/v3-utility-library/blob/master/infobox/src/infobox.js it seems there's more to do than simple setMap(null) in order to remove InfoBox from the map. In particular, all the listeners should be cleaned up. Perhaps calling infoBox.close() on unmounting makes more sense here?

Copy link
Owner

@tomchentw tomchentw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ur right, thanks!

@tomchentw tomchentw merged commit d18a194 into tomchentw:master Apr 20, 2017
tomchentw added a commit that referenced this pull request Apr 20, 2017
@tomchentw
Copy link
Owner

Amend-commit ad4f0ee

@tomchentw
Copy link
Owner

Released v6.0.2

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

Successfully merging this pull request may close these issues.

2 participants