tombatossals/angular-leaflet-directive — pull request #90 by grantlucas (2013-08-09 02:42:53+00:00)
Title: Cleaned up marker events removing legacy function while preserving backwards compatibility.

Did some clean up work on the marker events and added support for the click events to broadcast "leafletDirectiveMarkersClick" as well as the new format of "leafletDirectiveMarker.click" for backwards compatibility.

Opted to leave all this in the createMarker function so that it was in one place and guaranteed to be applied to every marker added to the map regardless of origin or time of addition.

Removed `genMultiMarkersClickCallback` calls in the clean up as they weren't necessary and were causing duplicate events to be attached to markers when used with the new system.

Think that's finally it for marker events!! :smile:

*Note:* This PR was rebased off of master for easier merging but there is current an issue in master as described in #89