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

Modify js prototype and add node snippets #423

Merged
merged 1 commit into from
Aug 20, 2014

Conversation

ConnorAtherton
Copy link
Contributor

I rarely see any js code where the function being added to the prototype is on a new line so I moved it to the same one.

I've also added node snippets that cover very common actions such as requiring modules or exporting from a module. I decided to leave out most callbacks from the snippets because they can be created by tabbing through until the handler and using the f snippet to create a new anonymous function.

It's nitpicking but I've also removed the spaces before the braces in anonymous functions as this seems to be a convention adopted by the js community. See here and here.

honza added a commit that referenced this pull request Aug 20, 2014
Modify js prototype and add node snippets
@honza honza merged commit b3f19f7 into honza:master Aug 20, 2014
@honza
Copy link
Owner

honza commented Aug 20, 2014

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