Added Emitter.extend.