dominictarr/amd — Issue #2: pass function that loads module, not the module
Author: dominictarr
Created: 2011-10-10 07:45:05+00:00
State: open

instead of injecting the module, inject the module loader function,
so that the module loader function isn't executed each time that a dep is used,
wrap each module function in a function that calls it once, and then caches the result.