fix events not overwriting target/type

This commit is contained in:
Vladimir Agafonkin 2013-02-27 16:34:40 +02:00
parent 6fff98435c
commit 1d4e91f9fa

View File

@ -116,10 +116,10 @@ L.Mixin.Events = {
return this;
}
var event = L.Util.extend({
var event = L.Util.extend({}, data, {
type: type,
target: this
}, data);
});
var listeners, i, len, eventsObj, contextId;