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

Fix Plotly.download using graph id as 1st argument #2931

Merged
merged 4 commits into from
Aug 21, 2018

Conversation

etpinard
Copy link
Contributor

fixes #2930

cc @alexcjohnson

@etpinard etpinard added bug something broken status: reviewable labels Aug 20, 2018
@@ -43,19 +45,19 @@ function downloadImage(gd, opts) {
reject(new Error('Sorry IE does not support downloading from canvas. Try {format:\'svg\'} instead.'));
}

gd._snapshotInProgress = true;
_gd._snapshotInProgress = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't this fail for the plain object case (_gd === undefined)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good eye. This made me realize Plotly.download with figure objects as first argument was also broken. Fixed and 🔒 ed in -> a5af83c

@alexcjohnson
Copy link
Collaborator

💃

@etpinard etpinard merged commit b5f8b23 into master Aug 21, 2018
@etpinard etpinard deleted the fix-download-from-graph-id branch August 21, 2018 18:47
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.

TypeError: Cannot create property '_snapshotInProgress' on string 'plot'
2 participants