title: How to return object methods parameters
body: <p>Here is part of my code</p>
  
  <p>Actual Code:</p>
  
  <p>Top:</p>
  
  <pre><code>var NS = (function (global) 
      {
  </code></pre>
  
  <p>Middle:</p>
  
  <pre><code>var ViewH = 
  {
      portfolio: function ( embeddedAml ) 
          {
          internals
          },
  </code></pre>
  
  <p>Bottom:</p>
  
  <pre><code>return {    
      ViewHPortfolio:    ViewH.portfolio,
  };
  
  })(window);
  </code></pre>
  
  <p>However, IE is reporting that var1 is undefined.  I define it in the function parameter list and use it in the function.  Not too sure what the interpreter is realy saying.</p>
  
  <p>These functions worked until I moved them into a common object - Container </p>
  
  <p>Also IE would not let me pass Container.func1 so I passed it to the HTML as ContainerFunc1.</p>
  
  <p>Question is, how do I get the interpreter to recognize the variables var1, var2...etc.</p>
  
  <p>Thanks,</p>