CloudMade/Leaflet — pull request #769 by Guiswa (2012-06-29 22:29:41+00:00)
Title: Nifty additions to L.Mixin.Events

Inspired by the on/off methods in jQuery.

Allow L.Mixin.Events.addEventListener() to accept a map in which the string keys represent one or more space-separated event types and the values represent a handler function to be called for the event(s).

Allow L.Mixin.Events.removeEventListener() to accept one or more space-separated event types. Omitting the fn parameter will remove all event handlers for the supplied event type(s).

Also allow L.Mixin.Events.removeEventListener() to accept a map where the string keys represent one or more space-separated event types and the values represent handler functions previously attached for the event(s).

Add unit tests for the above changes.

Update build.