File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ Returns a reference to the `EventEmitter` so calls can be chained.
427427* ` listener ` {Function} The callback function
428428
429429Adds a ** one time** ` listener ` function for the event named ` eventName ` to the
430- beginning of the listeners array. This listener is invoked only the next time
430+ * beginning* of the listeners array. This listener is invoked only the next time
431431` eventName ` is triggered, after which it is removed.
432432
433433``` js
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ var StringDecoder;
1212
1313util . inherits ( Readable , Stream ) ;
1414
15- const has_firston = typeof EE . prototype . prependListener === 'function' ;
15+ const hasPrependListener = typeof EE . prototype . prependListener === 'function' ;
1616
1717function prependListener ( emitter , event , fn ) {
18- if ( has_firston )
18+ if ( hasPrependListener )
1919 return emitter . prependListener ( event , fn ) ;
2020
2121 // This is a brutally ugly hack to make sure that our error handler
You can’t perform that action at this time.
0 commit comments