Skip to content

Instantly share code, notes, and snippets.

@WesSouza
Created September 29, 2014 18:54
Show Gist options
  • Select an option

  • Save WesSouza/98f61f7d33cd3818b32e to your computer and use it in GitHub Desktop.

Select an option

Save WesSouza/98f61f7d33cd3818b32e to your computer and use it in GitHub Desktop.

Revisions

  1. Wesley de Souza renamed this gist Sep 29, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Wesley de Souza created this gist Sep 29, 2014.
    12 changes: 12 additions & 0 deletions minreq
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    ;(function(where){
    var defined={},required={};
    function define(thing,something){
    defined[thing]=something
    }
    function require(thing){
    required[thing]=required[thing]||defined[thing]()
    return required[thing]
    }
    where.define=define
    where.require=require;
    })(this);