joyent/node — pull request #2826 by fent (2012-02-24 21:34:03+00:00)
Title: [fix] `newListener` emits correct fn when using `once`

The event emitter `once` function wraps the listener around a self removing function. In that case the wrapping function gets emitted in `newListener` event instead of the original listener.

This pull request fixes that.