This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Return the EventEmitter from addListener for chaining.

  • Loading branch information...
1 parent 53b3d6b commit b590a45849307f5544b7a95854f45064527105ad @ry ry committed Aug 19, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/events.js
View
@@ -8,6 +8,7 @@ node.EventEmitter.prototype.addListener = function (type, listener) {
if (!this._events.hasOwnProperty(type)) this._events[type] = [];
this._events[type].push(listener);
}
+ return this;
};
node.EventEmitter.prototype.listeners = function (type) {

0 comments on commit b590a45

Please sign in to comment.