Skip to content

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