CloudMade/Leaflet — pull request #770 by Guiswa (2012-06-29 23:18:34+00:00)
Title: Nifty additions to L.Mixin.Events...take 2

Removing the built files...

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.