title: static method patterns for constructor functions in javascript
body: <pre><code>function Foo(){...}
  Foo.bar = function (){...};
  </code></pre>
  
  <p>Is this the only pattern for adding a static method to a constructor function?  In particular, is it not possible to create the static method bar() within the definition of Foo() itself?</p>