code: function eventEmitter(ctor) {
    for (var prop in EventEmitter.prototype) {
      if (EventEmitter.prototype.hasOwnProperty(prop)) {
        ctor.prototype[prop] = EventEmitter.prototype[prop];
      }
    }
  }
docs: Mixes in {@link EventEmitter} into a constructor function.
  
  @param {function} ctor The constructor function.