title: RequireJS - Load multiple instances of module
body: <p>I'm trying to write a plugin in <strong>RequireJS</strong> that will create an instance of an object each time it's called. </p>
  
  <p>For (contrived) example:</p>
  
  <pre><code>define("loader", {
    load: function(name, req, onload, config) {
      var instance = GlobalGetter.get(name);
      instance.id = new Date().getTime() * Math.random();
      onload(instance);
    }
  });
  
  require(["loader!goo"], function(instance) {
    console.log(instance.id); // 12345
  });
  
  require(["loader!goo"], function(instance) {
    console.log(instance.id); // 12345 SAME!
  });
  </code></pre>
  
  <p>In this scenario, "<code>goo</code>" is only loaded once, so both require callbacks are passed the same object instance. This is totally understandable when you consider the problem RequireJS is trying to solve, but it's not what I need.</p>
  
  <p>Is it possible to configure a plugin in such a way that it never returns a cached result? RequireJS fits my needs perfectly except for this use case. Is there any (un)official way to get the behavior I'm looking for?</p>
  
  <p>Thanks.</p>