Created
June 30, 2012 19:42
-
-
Save devinrhode2/3025239 to your computer and use it in GitHub Desktop.
Better strict mode pattern.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author: username (email@me.com) */ | |
//'globals': | |
var foo, bar; | |
(function myCodeFileJS(){ | |
'use strict'; | |
foo = 'asdf'; | |
//private: | |
var baz = 'adsf'; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment