Skip to content

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jul 7, 2016

@pkra pkra added this to the MathJax v2.x.x milestone Jul 8, 2016
BBoxStyle: function (styles) {return SAFE.filterStyles(styles)},
BBoxPadding: function (pad) {
var styles = SAFE.filterStyles("padding: "+pad);
return (styles ? pad : 0);
Copy link
Member

Choose a reason for hiding this comment

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

Remove obsolete parens.

Copy link
Member Author

@dpvc dpvc Jul 23, 2016

Choose a reason for hiding this comment

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

Personally, I prefer these parentheses, and there are a number of places that they are used in this way in the current code base. We can argue about develop a coding style for v3.0, but I don't think it is necessary to switch styles for a few lines of 2.7 when all the other instances are different.

Copy link
Member

Choose a reason for hiding this comment

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

Fine. NP.

Personally I prefer redundant whitespace to obsolete parentheses for readability....
I believe for v3.0 we just have to agree on a style and mandatory linting!

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe for v3.0 we just have to agree on a style and mandatory linting!

And use editorconfig.org and similar tools to minimize inconvenience.

Copy link
Member Author

Choose a reason for hiding this comment

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

Personally I prefer redundant whitespace

I personally find excessive white space hard to read. But I know I will have to modify my old stodgy ways. I will try not to argue too much, and am sure I can adapt over time.

@dpvc dpvc merged commit a7db49a into mathjax:develop Aug 5, 2016
@dpvc dpvc deleted the issue1182 branch August 5, 2016 15:18
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