Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 26, 2014 18:17
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 devdays/8635fc1c0f3c512c4cc3 to your computer and use it in GitHub Desktop.
Save devdays/8635fc1c0f3c512c4cc3 to your computer and use it in GitHub Desktop.
Object JavaScript - Declaring global when using 'use strict' pragma in browser
(function(){
"use strict";
window.GLOB = {};
}());
(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