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

Don't call Layer#onRemove if Layer#onAdd was never called #1729

Merged
merged 3 commits into from
Jun 3, 2013

Conversation

jfirebaugh
Copy link
Member

No description provided.

@jfirebaugh
Copy link
Member Author

There's an additional problem with this code, which is that onAdd is called even when the layer is removed before the map becomes ready. Looking at a fix.

@mourner
Copy link
Member

mourner commented Jun 3, 2013

Looks great, and thanks a lot for the extensive test coverage John! It's a pleasure to merge such pull requests.

mourner added a commit that referenced this pull request Jun 3, 2013
Don't call Layer#onRemove if Layer#onAdd was never called
@mourner mourner merged commit 9295fde into Leaflet:master Jun 3, 2013
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