Skip to content

Conversation

etpinard
Copy link
Contributor

@alexcjohnson @bpostlethwaite @cldougl @mdtusz

This PR fixes:

  • Plotly.plot().then() for the geo plot type
  • Plotly.newPlot().then() for all trace types

promises.push(new Promise(function(resolve) {
d3.json(topojsonPath, function(error, topojson) {
if(error) {
if(error.status === 404) {
Copy link
Member

Choose a reason for hiding this comment

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

Reject()

Copy link
Member

Choose a reason for hiding this comment

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

New Promise(resolve, reject)

// in error handler
reject()

@bpostlethwaite
Copy link
Member

💃 !

etpinard added a commit that referenced this pull request Dec 2, 2015
@etpinard etpinard merged commit 10dff2c into master Dec 2, 2015
@etpinard etpinard deleted the plot-promises-fixups branch December 2, 2015 16:16
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.

3 participants