title: Sharing variable around different instances of YUI
body: <p>I have made up the custom module as :</p>
  
  <pre><code>YUI.add('util', function(Y) {
     Y.namespace('com.myCompany');
     var NS = Y.com.myCompany;
          NS.val = undefined;
  }, '3.3.0', {
     requires : []
  });
  </code></pre>
  
  <p>What I am trying to do is share this variable val in the instances where I use this module "util". As in</p>
  
  <pre><code>YUI().use("util","node","event",function (Y) {
      Y.namespace('com.myCompany');
      var MV = Y.com.myCompany;
      var setVal = function(e){
          MV.val = 10;
  }
     Y.on("click", setVal,"#one");
    });
  </code></pre>
  
  <p>Now if I want to get this in other instance I am doing as the following:</p>
  
  <pre><code> YUI().use("util","node","event",function (Y) {
          Y.namespace('com.myCompany');
          var MV = Y.com.myCompany;
          var getVal = function(e){
              alert(MV.val);
          }
         Y.on("click", getVal,"#two");
      });
  </code></pre>
  
  <p>But this does not seem to be working. Is there a way to get this behavior. I am doing this only to split up the code.</p>