Correct use of the module pattern sytnax?
<p>I've seen two ways...the first makes most sense to me.</p>

<p>Self execution parentheses are placed directly after the function brackets.  All is included between parentheses to make it a function expression.  Reference <a href="http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth" rel="nofollow">here</a></p>

<pre><code>( function () {
    // ... all vars and functions are in this scope only
    // still maintains access to all globals
} () );
</code></pre>

<p>and this style, where self-execution parentheses are place after the parentheses which create the function expression.  Reference <a href="http://www.codeproject.com/Articles/247241/Javascript-Module-Pattern" rel="nofollow">here</a></p>

<pre><code>var Var = ( function ( window, undefined ) 
{

} )();
</code></pre>

<p>I'm not sure if the var makes a difference in the syntax...?</p>
