joyent/node — pull request #4390 by tricknotes (2012-12-07 18:01:11+00:00)
Title: events: Use null assignment instead of deleting property

There is the following difference between the way of removing listeners.
- `removeLisner` use deleting property
- https://github.com/joyent/node/blob/v0.8/lib/events.js#L225
- https://github.com/joyent/node/blob/v0.8/lib/events.js#L229
- `removeAllListeners` use null assignment
- https://github.com/joyent/node/blob/v0.8/lib/events.js#L242

I think this difference has no particular meaning.

So, I use null assignment because it is 20 ~ 40 times faster than deleting property.