Created
December 26, 2014 18:17
-
-
Save devdays/8635fc1c0f3c512c4cc3 to your computer and use it in GitHub Desktop.
Object JavaScript - Declaring global when using 'use strict' pragma in browser
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
(function(){ | |
"use strict"; | |
window.GLOB = {}; | |
}()); |
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
(function(win){ | |
"use strict"; | |
win.GLOB = {}; | |
}(window)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment