Closed v1r0x closed 6 years ago
This is a breaking change, closing this PR.
It's especially a bug in ui-leaflet if I remember correctly or am I wrong? Afair the L.control.layers
constructor expects two objects ({}
) instead of two arrays ([]
).
Fix #333 The
L.control.layers
contructor expects two objects, but two arrays were given. This PR fixes a bug appearing when the user extends arrays (e.g.Array.prototype.whatever
). I replaced the empty arrays[]
in the constructor with empty objects{}
.cc @elesdoar