REFS #687 - Removed optional tags arguments
Showing
1 changed file
with
1 additions
and
14 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment