Browse Source

events: fix typos in code comment

- newListeners -> newListener
v0.9.4-release
Ryunosuke SATO 12 years ago
committed by Ben Noordhuis
parent
commit
0506d294dc
  1. 4
      lib/events.js

4
lib/events.js

@ -137,8 +137,8 @@ EventEmitter.prototype.addListener = function(type, listener) {
if (!this._events) this._events = {};
// To avoid recursion in the case that type == "newListeners"! Before
// adding it to the listeners, first emit "newListeners".
// To avoid recursion in the case that type == "newListener"! Before
// adding it to the listeners, first emit "newListener".
if (this._events.newListener) {
this.emit('newListener', type, typeof listener.listener === 'function' ?
listener.listener : listener);

Loading…
Cancel
Save