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 #2633 - make sure we have a grid before attaching it to layoutOut #2638

Merged
merged 2 commits into from
May 16, 2018

Conversation

alexcjohnson
Copy link
Collaborator

cc @etpinard a quick one - the key is attaching gridOut to layoutOut after this short-circuit return

@@ -908,6 +908,25 @@ describe('grids', function() {
});
}

it('does not barf on invalid grid objects', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Can you also check that Plotly.validate([], {grid: true}) does the right thing? It barfs too on master.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you also check that Plotly.validate([], {grid: true}) does the right thing?

good call -> 09ee26e

@etpinard
Copy link
Contributor

Nicely done 💃

@alexcjohnson alexcjohnson merged commit fb75158 into master May 16, 2018
@alexcjohnson alexcjohnson deleted the grid-mess-fix branch May 16, 2018 15:16
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