title: Using variable as shorthand for Foo.prototype
body: <p>I just started using module pattern in JavaScript to declare functional objects, but found it annoying to repeat the Foo.prototype keyword in declaring all those public functions you might need. </p>
  
  <p>So I came up with using some shorthand variable for convenience as follows. </p>
  
  <pre><code>(function(){    
     var Foo = function(){
        alert('created Foo');
     }
  
     // shorthand for further creation of public functions
     var pro = Foo.prototype;
  
     //public function with shorthand
     pro.bar = function(){
        //some cool stuff here
     }
     return window.Foo = Foo;
  }());
  </code></pre>
  
  <p>Question is: is there some reason to prevent me from saving these few characters regarding functionality or some unexpected error or is this safe to do?
  This seems to work just fine for the cases I used it in?</p>