CloudMade/Leaflet — pull request #1233 by mehmeta (2012-12-25 01:39:14+00:00)
Title: Polyline layer leaves markers behind if removed in editing state

If the fire event gets fired after the _map is set to null, when a polyline is removed from the map while it is in editing state it leaves all its smaller editing markers behind. Calling it before the _map is set to null ensures proper cleanup of the polyline.