title: dojo require different js files
body: <p>recently I have a problem about including other js files using dojo. e.g. :
  In my 1.js file, I wrote:</p>
  
  <pre><code>require(["dijit/form/Button"], function(Button){
  addButton(someWidget);});
  </code></pre>
  
  <p>and in my 1a.js file, I wrote the function addButton: </p>
  
  <pre><code>function addButton(target){
      var b1=new Button({
          style: "border: 1px solid green",
          label: "xxxxx"
      });
      target.addChild(b1);
      return b1;
  }
  </code></pre>
  
  <p>for 1a.js there must be an error, because I did not require that module, but i add require, the biggest
  problem is that returned value, I can not get the return value, because of nested funciton.</p>
  
  <p>how can i wrote a js file, which i wrote all my functions, and in another js file, i just call these functions with <code>dojo require("xxxx", function(x){})</code></p>
  
  <p>Thanks for help!</p>