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

Removing repeating selector, use a variable reference #3

Closed
surbhioberoi opened this issue Jul 26, 2016 · 1 comment
Closed

Removing repeating selector, use a variable reference #3

surbhioberoi opened this issue Jul 26, 2016 · 1 comment

Comments

@surbhioberoi
Copy link
Owner

var stats = $('.stats') and use stats instead of using $('.stats') everywhere.

@surbhioberoi
Copy link
Owner Author

(From HN Comment)

Also instead of repeating repos[i] at multiple places, use a variable repo = repos[i] and then reference its properties.

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

No branches or pull requests

1 participant