CloudMade/Leaflet — Issue #408: mouse events for L.Marker
Author: javadze
Created: 2011-12-28 05:26:21+00:00
State: open

In this code, for cliens passes only e.type:

_onMouseClick: function (e) {
L.DomEvent.stopPropagation(e);
if (this.dragging && this.dragging.moved()) { return; }
this.fire(e.type);
},

_fireMouseEvent: function (e) {
this.fire(e.type);
L.DomEvent.stopPropagation(e);
}

And client can't get other event params like e.which or e.button. Please fix it like: this.fire(e.type, e);