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

Sanity check of buttons length before calling indexes #60

Merged
merged 1 commit into from
Jan 17, 2013

Conversation

yohanboniface
Copy link
Member

My use case is that enabling/disabling handlers can be done from UI by users in Leaflet.Storage (demo here), so one can disable all the handlers.
I also can do some checks on my side, but: 1. I think this sanity check doesn't cost; 2. I'm using the container even if no handler is enabled.

Thanks!

Yohan

@jacobtoye
Copy link
Member

Awesome stuff @yohanboniface I should have thought of this while making the change :|

jacobtoye added a commit that referenced this pull request Jan 17, 2013
Sanity check of buttons length before calling indexes
@jacobtoye jacobtoye merged commit 238f0e0 into Leaflet:master Jan 17, 2013
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.

2 participants