diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-09-15 15:20:04 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-09-15 15:20:04 -0700 |
commit | ae8f8e7258bb9db0bc6928e9dc1cd535d95a7910 (patch) | |
tree | 3fce311a6410a5a8a3a661245a86b8af312c9b22 /lib/events.js | |
parent | feea1330cc3858a5aa65f2072a6025cb5ca0cd56 (diff) | |
download | node-new-ae8f8e7258bb9db0bc6928e9dc1cd535d95a7910.tar.gz |
Optimize emit for two arguments
Diffstat (limited to 'lib/events.js')
-rw-r--r-- | lib/events.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events.js b/lib/events.js index 6b422d1b9a..69cfc4fc99 100644 --- a/lib/events.js +++ b/lib/events.js @@ -21,7 +21,7 @@ process.EventEmitter.prototype.emit = function (type) { if (!this._events[type]) return false; if (typeof this._events[type] == 'function') { - if (arguments.length < 3) { + if (arguments.length <= 3) { // fast case this._events[type].call( this , arguments[1] |