summaryrefslogtreecommitdiff
path: root/lib/events.js
diff options
context:
space:
mode:
authorRyunosuke SATO <tricknotes.rs@gmail.com>2012-12-10 18:16:13 +0900
committerBen Noordhuis <info@bnoordhuis.nl>2012-12-10 13:07:35 +0100
commiteb502205d5a378f5300ace404f43d3da27d473ad (patch)
treee1b1b12b85bdc21b456ef60410e6aa7ef8685bd5 /lib/events.js
parent1c7acd2c843d9f19a0b8ecee48ec48fa617eac5e (diff)
downloadnodejs-eb502205d5a378f5300ace404f43d3da27d473ad.tar.gz
nodejs-eb502205d5a378f5300ace404f43d3da27d473ad.tar.bz2
nodejs-eb502205d5a378f5300ace404f43d3da27d473ad.zip
events: setMaxListeners() should not have side effects
This object initialization has been unnecessary since 12cf730b. Ref #3803.
Diffstat (limited to 'lib/events.js')
-rw-r--r--lib/events.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/events.js b/lib/events.js
index 00c2071f2..59bcb13b7 100644
--- a/lib/events.js
+++ b/lib/events.js
@@ -41,7 +41,6 @@ exports.EventEmitter = EventEmitter;
// that to be increased. Set to zero for unlimited.
var defaultMaxListeners = 10;
EventEmitter.prototype.setMaxListeners = function(n) {
- if (!this._events) this._events = {};
this._maxListeners = n;
};