L.Mixin.Events will be removed in future releases
we may need a judgement in includes,
let events = null
//If Version is >= 1.2.0
if (parseInt(version[0], 10) === 1 && parseInt(version[1], 10) >= 2) {
events = L.Evented.prototype;
} else {
events = L.Mixin.Events;
}
L.Mixin.Events will be removed in future releases we may need a judgement in includes, let events = null //If Version is >= 1.2.0 if (parseInt(version[0], 10) === 1 && parseInt(version[1], 10) >= 2) { events = L.Evented.prototype; } else { events = L.Mixin.Events; }