Skip to content

Conversation

jec006
Copy link

@jec006 jec006 commented Jun 10, 2013

An attempt to resolve #1749

See issue for fiddle showing the issue.

This pull request simply unbinds the event (which is bound when the maxBounds are set) when the maxBounds are removed

mourner added a commit that referenced this pull request Jun 10, 2013
Unbind moveend event when maxBounds removed
@mourner mourner merged commit ae10f4d into Leaflet:master Jun 10, 2013
@mourner
Copy link
Member

mourner commented Jun 10, 2013

Thanks!

@jec006 jec006 deleted the unbind-moveend-maxbounds branch June 11, 2013 13:57
@jec006
Copy link
Author

jec006 commented Jun 11, 2013

Awesome, thank you!

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.

When unsetting maxBounds, moveend event remains bound and causes errors
2 participants