Skip to content

Add spacing to comments in jquery.flot.js - #1241

Merged
nschonni merged 1 commit into
flot:0.9-workfrom
nschonni:jsdoc-cleanup
Mar 25, 2014
Merged

nschonni merged 1 commit into
flot:0.9-workfrom
nschonni:jsdoc-cleanup

Conversation

@nschonni

@nschonni nschonni commented Feb 4, 2014

Copy link
Copy Markdown
Member
  • Fix JSDoc headers where applicable
  • Add spacing before/after comments per jQuery style guide

In the end a bunch of these comments should probably use http://usejsdoc.org/tags-property.html

@dnschnur dnschnur self-assigned this Feb 4, 2014
@dnschnur

Copy link
Copy Markdown
Member

I need to check what the jQuery style guide recommends, but the inline comments look better to me; this feels too spaced-out. When there's a full sentence or more, e.g. jquery.flot.js line 359, that should be a block comment. But for labels or little notes it seems excessive. What do you think?

@nschonni

Copy link
Copy Markdown
Member Author

You're right http://contribute.jquery.org/style-guide/js/#comments I thought there was supposed to be a newline following the comment block but that may have been an older version of the style guide

- Fix JSDoc headers where applicable
- Add spacing before/after comments per jQuery style guide
@nschonni

Copy link
Copy Markdown
Member Author

I went through and removed the trailing newlines after the comments to match the current style-guide

nschonni added a commit that referenced this pull request Mar 25, 2014
Add spacing to comments in jquery.flot.js
@nschonni
nschonni merged commit f2b3b26 into flot:0.9-work Mar 25, 2014
@nschonni
nschonni deleted the jsdoc-cleanup branch March 25, 2014 22:40
@dnschnur

Copy link
Copy Markdown
Member

Thanks; sorry for not merging this sooner.

@nschonni

Copy link
Copy Markdown
Member Author

No problem, I had forgot about it too till I was cleaning up some open PRs 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants