Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

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 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