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

fix memory leak generated by setIcon #2811

Merged
merged 1 commit into from Jul 24, 2014
Merged

fix memory leak generated by setIcon #2811

merged 1 commit into from Jul 24, 2014

Conversation

jfgodoy
Copy link
Contributor

@jfgodoy jfgodoy commented Jul 24, 2014

when setIcon is called this.dragging is replaced without be disabled before, so hooks remains active.

Also avoid trigger a click event on the map after dragging a marker that has called setIcon, check this jsfliddle http://jsfiddle.net/nMS9u/

when setIcon is called this.dragging is replaced without be disabled before, so hooks remains active.
mourner added a commit that referenced this pull request Jul 24, 2014
fix memory leak generated by setIcon
@mourner mourner merged commit f773a16 into Leaflet:master Jul 24, 2014
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.

None yet

2 participants