Commit 527fe8a8 527fe8a8bc9057da8ee92631eb873de8b8f3dfbb by mickaelandrieu

REFS #687 - Removed optional tags arguments

1 parent 26cd46aa
...@@ -202,20 +202,7 @@ EventEmitter.prototype.prependListener = function prependListener(type, listener ...@@ -202,20 +202,7 @@ EventEmitter.prototype.prependListener = function prependListener(type, listener
202 return this; 202 return this;
203 }; 203 };
204 204
205 EventEmitter.prototype.on = function on(type, listener, tag) { 205 EventEmitter.prototype.on = EventEmitter.prototype.addListener;
206 switch(tag) {
207 case "ADD":
208 return this.addListener(type, listener);
209 break;
210
211 case "PREPEND":
212 return this.prependListener;
213 break;
214
215 default:
216 return this.addListener(type, listener);
217 }
218 };
219 206
220 EventEmitter.prototype.once = function once(type, listener) { 207 EventEmitter.prototype.once = function once(type, listener) {
221 if ('function' !== typeof listener) { 208 if ('function' !== typeof listener) {
......