Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Emitter(obj) to extend a proto #6753

Closed
tj opened this issue Dec 22, 2013 · 1 comment
Closed

Emitter(obj) to extend a proto #6753

tj opened this issue Dec 22, 2013 · 1 comment

Comments

@tj
Copy link

tj commented Dec 22, 2013

Probably too sugary for core but I don't think anyone likes using util.inherit(), worth a try ;D

Emitter(Foo.prototype);
@indutny
Copy link
Member

indutny commented Dec 22, 2013

We're relying pretty heavily on util.inherits in core, and I don't think that this is really necessary for us. But user-land module can certainly do it. And most importantly, you can use any inheritance mechanism with EventEmitter's constructor, so I think it is too much to have one more in core.

@indutny indutny closed this as completed Dec 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants