Skip to content

Instantly share code, notes, and snippets.

@mindplay-dk
mindplay-dk / tinyAMD.js
Last active December 19, 2015 06:09 — forked from potch/tinyAMD.js
// # tinyAMD: a Minimal AMD shim.
// I define Minimal AMD as the following:
// * Every define() call provides a module id field (no filename magic)
// * Every require() call consistently provides a list of dependencies, and
// optionally a callback to receive the resolved dependencies
// * No additional network traffic to fetch modules
// * All dependencies must be defined before a module may be required
// ## Uses