From e46f4f4a21bd7fca1f7f63b3e4d850607100452d Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Tue, 15 Mar 2022 19:45:57 -0500 Subject: [PATCH] conditionally handle L.Evented/L.MixinEvents --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e4e12d0..5603722 100644 --- a/src/index.js +++ b/src/index.js @@ -70,7 +70,7 @@ L.Control.SplitMap = L.Control.extend({ setPosition: noop, - includes: L.Mixin.Events, + includes: L.version.split(".")[0] === '1' ? L.Evented.prototype : L.Mixin.Events, addTo: function (map) { this.remove()