Skip to content

Commit 8b92b8e

Browse files
authored
Merge pull request #9 from bollwyvl/patch-1
conditionally handle L.Evented/L.MixinEvents
2 parents f44259d + e46f4f4 commit 8b92b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ L.Control.SplitMap = L.Control.extend({
7070

7171
setPosition: noop,
7272

73-
includes: L.Mixin.Events,
73+
includes: L.version.split(".")[0] === '1' ? L.Evented.prototype : L.Mixin.Events,
7474

7575
addTo: function (map) {
7676
this.remove()

0 commit comments

Comments
 (0)