javascript-patterns icon indicating copy to clipboard operation
javascript-patterns copied to clipboard

Patterns not consistently used

Open suspectpart opened this issue 11 years ago • 0 comments

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?

suspectpart avatar Jan 02 '14 11:01 suspectpart