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

Do not ignore x2's title #3766

Merged
merged 3 commits into from
May 19, 2018
Merged

Do not ignore x2's title #3766

merged 3 commits into from
May 19, 2018

Conversation

kanitw
Copy link
Member

@kanitw kanitw commented May 18, 2018

Fix #3742

@@ -130,6 +130,24 @@ describe('Axis', function() {
}
});

it('should store the fieldDef title value if title = null, "", or false', function () {
Copy link
Member

Choose a reason for hiding this comment

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

why not use an arrow function here

Copy link
Member Author

Choose a reason for hiding this comment

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

You gonna call another clean all service later anyway, so I'll ignore this :p

Copy link
Member

Choose a reason for hiding this comment

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

Okay

const model = parseUnitModelWithScale({
mark: "bar",
encoding: {
x: {
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a test where only x and only x2 have a title defined.

Copy link
Member Author

Choose a reason for hiding this comment

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

That doesn't work for other reasons, and I'm not gonna fix it in this PR. Feel free to file another issue.

Copy link
Member

Choose a reason for hiding this comment

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

Okay

return title1;
} else if (title2) {
return title2;
} else if (title1 !== undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

What is this about? Can you add a comment?

@domoritz domoritz merged commit 67d49ac into master May 19, 2018
@domoritz domoritz deleted the kw/title2 branch May 19, 2018 05:06
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.

2 participants