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

Patterns not consistently used #107

Open
suspectpart opened this issue Jan 2, 2014 · 0 comments
Open

Patterns not consistently used #107

suspectpart opened this issue Jan 2, 2014 · 0 comments

Comments

@suspectpart
Copy link

In explanations for certain patterns, other anti-patterns are often used. I.E. in the explanation code for the "Single var pattern", the patterns for "Function Declarations" and "Access to the Global Object" are both ignored:

function updateElement() {
var el = document.getElementById("result")
, style = el.style;
// do something with el and style...
}

Shouldn't all patterns be used consistently, with only changing the focus example by example?

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