title: RequireJS setting Module variables from outside doesnt take effect
body: <p>Im having trouble setting variables within a requireJS Define module, it flatout doesnt take effect. I have the following (cutdown) example to illustrate the issue:</p>
  
  <p>Here is the defined module:</p>
  
  <pre><code>define([], function () {
  var testerString = "BaseLine";
  
  var ShowTesterString = function () {
      console.log(testerString);
  }
  
  var setTesterString = function (pTesterString) {
      testerString = pTesterString;
  }
  
  return {
      testerString: testerString,
      ShowTesterString: ShowTesterString,
      setTesterString: setTesterString
  };  
  });
  </code></pre>
  
  <p>I than set the "TesterModule" as a dependency of another and run the following lines of code:</p>
  
  <pre><code>TesterModule.ShowTesterString();
  TesterModule.testerString = "Change 1";
  TesterModule.ShowTesterString();
  TesterModule.setTesterString("Change in Setter");
  TesterModule.ShowTesterString();
  </code></pre>
  
  <p>What gets outputted to the console is:</p>
  
  <pre><code>BaseLine 
  BaseLine 
  Change in Setter 
  </code></pre>
  
  <p>I would have thought that it should be :</p>
  
  <pre><code>BaseLine 
  Change 1
  Change in Setter 
  </code></pre>
  
  <p>It seems that setting a variable in a module just by doing variable = blah doesnt take any effect, it seems to require to set variables within a method of the module. Can anyone explain to me why this is? Or what I am coding wrong?</p>
  
  <p>Thanks in advance</p>