fix events not overwriting target/type
This commit is contained in:
parent
6fff98435c
commit
1d4e91f9fa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user