title: Return async requirejs finish callback value to outside function
body: <p>I have a problem, I need to wait until requirejs loads some "secondary"  dependencies and then return a computed object to my requirejs module.</p>
  
  <p>Granted that I know I could pass all dependencies in the first define statement, are there alternative ways to do that?</p>
  
  <p>Example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>define(
      ['require', 'jquery', 'underscore'], 
  
      function (require, $, _) 
      {
          var fooBar = require(['foo', 'bar'], function(foo, bar) 
          {
              return new FooBar(foo, bar);
          });
  
          return fooBar;
      }
  );</code></pre>
  </div>
  </div>
  </p>
  
  <p>This module returns me a localRequire callback, instead I would want to  obtain the return value from the second require statement, so my FooBar object.</p>
  
  <p>How can I achieve a similar thing?
  Thanks, sorry for my English if I made mistakes, I'm Italian..</p>