JavaScript Module pattern, is new a good idea?
<p>I'm trying to learn the JavaScript module pattern referenced <a href="http://www.yuiblog.com/blog/2007/06/12/module-pattern/" rel="nofollow">here</a>. Everything looks great but I keep seeing different ways to create the module.</p>

<p>In the article referenced above he access the module's public methods by using <code>YAHOO.myProject.myModule.init();</code> without calling <code>new</code>.  But then I've seen a few people do something like <code>var module = new YAHOO.myProject.myModule();</code>.  Should <code>new</code> be used and why?</p>
