On Sun, Apr 8, 2012 at 5:25 PM, Pedro Teixeira <[email protected]> wrote:
> Yes, thanks, I know that's an option.
> Are there any plans to standardize this into core?
Question is, why?
The core EventEmitter-class is pure javascript, nothing fancy, just
the very basics. It is sufficient for almost all situations. The more
you add to this basics, the more overhead/inefficiency you'll get in
return.
If it is really not sufficient, a simple 'npm install eventemitter2'
or dependency to eventemitter2 in package.json , then
require('eventemitter2') - and hooray, and you can use it.
But if I would need only what you described, I would overwrite 'emit'
of the EventEmitter. Its not that hard, EventEmitter of nodes
events.js is pure JS.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en