Skip to content

Mapbox access token catches #776

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

Merged
merged 2 commits into from
Jul 28, 2016
Merged

Mapbox access token catches #776

merged 2 commits into from
Jul 28, 2016

Conversation

etpinard
Copy link
Contributor

Fixes bug introduced in #729 and on display here: http://codepen.io/lpan/pen/kXJzbY?editors=0011 discovered by @lpan .

Plotly.plot(gd, data, layout).catch(function(err) {
  console.log('works again');
});

@etpinard etpinard added bug something broken status: reviewable labels Jul 25, 2016
}, function() {
// clear the promise queue if one of them got rejected
Lib.log('Clearing previous rejected promises from queue.');
gd._promises = [];
Copy link
Contributor Author

@etpinard etpinard Jul 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was under the impression that the 2nd argument to Promise.all().then(, ) was simply a callback and did not eat any subsequent Plotly.plot().catch() handlers. I was wrong.

@lpan
Copy link

lpan commented Jul 25, 2016

Error caught in filewell! Thanks a lot man 👍 💃

@etpinard etpinard added this to the v1.16.0 milestone Jul 28, 2016
@etpinard etpinard merged commit 48eec0c into master Jul 28, 2016
@etpinard etpinard deleted the mapbox-access-token-catches branch July 28, 2016 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants