From 0506d294dc5a51556e935a50a754aa7cbd7a7977 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Mon, 10 Dec 2012 18:32:56 +0900 Subject: [PATCH] events: fix typos in code comment - newListeners -> newListener --- lib/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/events.js b/lib/events.js index 59bcb13b790..979f19141ce 100644 --- a/lib/events.js +++ b/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);