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

CallbackManager#dispatchCallback eats exceptions #144

Open
jholloway7 opened this issue Feb 6, 2013 · 0 comments
Open

CallbackManager#dispatchCallback eats exceptions #144

jholloway7 opened this issue Feb 6, 2013 · 0 comments

Comments

@jholloway7
Copy link

I'm using Mapbox v0.6.7 which uses MM under the hoods. I came across a weird situation where a particular zoom handler worked sometimes but not others. There was no output to the console and/or exception bubbling up. Tracing through the code I came across this:

https://github.com/stamen/modestmaps-js/blob/master/src/callbacks.js#L57

I made a quick patch to cause exceptions there to bubble up the stack and was able to figure out my logic error.

I don't currently know enough about MM to know if this is by design, but it seems there's an opportunity to do something more graceful there? Thanks.

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

No branches or pull requests

1 participant