CloudMade/Leaflet — pull request #1038 by jacobtoye (2012-10-05 01:28:16+00:00)
Title: Decouple the closePopup and movePopup from L.Marker

I notice there is a TODO in the L.Marker to move the close popup code to Marker.Popup. I have achieved this using events. This seems like the best approach. I'm happy to hear alternative solutions?

I particularly need this for the [Leaflet.label](https://github.com/jacobtoye/Leaflet.label/) as labels are implemented similar to Popups.

To test I just hacked up map.html, but if you like I'd be happy to add a test file.