Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use empty objects instead of arrays, fix #333 #1

Closed
wants to merge 1 commit into from

Conversation

v1r0x
Copy link
Owner

@v1r0x v1r0x commented Jul 10, 2017

Fix angular-ui#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

@v1r0x v1r0x closed this Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant