Skip to content

Instantly share code, notes, and snippets.

@adamjmcintyre
Created May 11, 2012 14:47

Revisions

  1. adamjmcintyre created this gist May 11, 2012.
    14 changes: 14 additions & 0 deletions strict-boilerplate
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ;(function(win, $){
    "use strict";

    // Check to see if our global is available as a member of window; if it is, our namespace root exists; if not, we'll create it.
    var foospace = win.foospace = (typeof win.foospace !== "undefined") ? win.foospace : {};

    (foospace.module = function(){
    return{
    _init : function(){
    // Etc. etc.
    }
    }
    }())._init();
    }(window, jQuery));