Skip to content

Instantly share code, notes, and snippets.

@osuushi
Created April 26, 2012 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osuushi/2499913 to your computer and use it in GitHub Desktop.
Save osuushi/2499913 to your computer and use it in GitHub Desktop.
Why globals named "p" are dangerous
p('This is a paragraph about some stuff').inject(document.body);
/* Lots of code later, but within the same scope */
for(var p in pancakeList) {
flip(p);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment