digidem / leaflet-side-by-side

A Leaflet control to add a split screen to compare two map overlays
http://lab.digital-democracy.org/leaflet-side-by-side/
MIT License
351 stars 111 forks source link

L.Mixin.Events: this property will be removed in future releases #42

Open coderSang opened 2 years ago

coderSang commented 2 years ago

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; }