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

JSCS cleanup #26

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

paulschreiber
Copy link

whitespace, braces around if statements, yoda conditions, strict equality, camel case, var declarations at top

Paul Schreiber added 2 commits November 9, 2016 16:18
yoda conditions, strict equality checks, braces
Copy link
Member

@zinigor zinigor left a comment

Choose a reason for hiding this comment

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

Added one nitpick related to a change, plus I'd really like to test the PR. This is all a very welcome change, but there are lots of local variables introduced that may have been global on purpose. I'll try to test this week.

.fadeOut( fast ? 'fast' : 'slow' )
.promise()
.done( function() { $( '#draft-error' ).remove(); } );
.done( function() {
$( '#draft-error' ).remove();
Copy link
Member

Choose a reason for hiding this comment

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

This change doesn't make sense to me, why not keep it all in one line? Also, indentation seems off.

Copy link
Author

Choose a reason for hiding this comment

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

The autoindenter sometimes gets things wrong. Fixed.

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