title: Event emitter constructor
body: <p>I'm trying to understand how objects become event emitters. The documentation has something similar to the following code:</p>
  
  <pre><code>var EventEmitter = require('events').EventEmitter;
  
  function Job(){
    EventEmitter.call(this);
  }
  </code></pre>
  
  <p>I'm unclear what the call function is doing here, apparently calling EventEmitter's constructor?</p>
  
  <pre><code>&gt; var j = new Job()
  undefined
  &gt; j.emit('test')
  TypeError: Object #&lt;Job&gt; has no method 'emit'
  </code></pre>
  
  <p>After setting the prototype via <code>Job.prototype = new EventEmitter;</code> seems to work as expected.</p>