Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Created April 23, 2013 14:16
Show Gist options
  • Save unscriptable/5443918 to your computer and use it in GitHub Desktop.
Save unscriptable/5443918 to your computer and use it in GitHub Desktop.
// `myAwesomeNamespace.declare` is mapped from the outside world to `define` inside this iife
(function (define) {
// modules go here
define('foo' function (require) {
return 'foo';
});
define('bar' function (require) {
return 'bar';
});
}(myAwesomeNamespace.declare));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment