Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Array.prototype breaks Layer Control #333

Open
v1r0x opened this issue Apr 6, 2017 · 0 comments
Open

Array.prototype breaks Layer Control #333

v1r0x opened this issue Apr 6, 2017 · 0 comments

Comments

@v1r0x
Copy link

v1r0x commented Apr 6, 2017

Hi,

I have extended Arrays using Array.prototype. The added function swap completely breaks Layer Control (leaflet-1.X branch) and adds an overlay with the title "swap" on master branch. On leaflet-1.X branch I get t.on is not a function.
After some searching for a solution I found an open issue in tombatossals/angular-leaflet-directive#1024. Switching from [] to {} in master and leaflet-1.X fixed the error for me.
Should I open a pull request for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant