Skip to content

Instantly share code, notes, and snippets.

@tonyonodi
Created December 17, 2014 02:50
Show Gist options
  • Save tonyonodi/a459b13c3657cb59cf82 to your computer and use it in GitHub Desktop.
Save tonyonodi/a459b13c3657cb59cf82 to your computer and use it in GitHub Desktop.
Keep things out of global scope
/* source: http://toddmotto.com/avoiding-anonymous-javascript-functions */
(function (window, document, undefined) {
// la la la
})(window, document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment