By default RequireJS treats modules as singletons. Once RequireJS does it's name resolution and finds that you want module X
then if you require it once, twice, three million times, you'll always get the same module object. The first time the module is required, it is created, and then the next time it is required again, you get the same module as what was returned the first time. The callback you give to define
is called once, and only once.
If you use requirejs.undef
, you could trick RequireJS into giving you multiple copies of a module but this is not the basic usage.