We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea984d5 commit e41eff9Copy full SHA for e41eff9
github-webhook-handler.js
@@ -20,10 +20,8 @@ function create (options) {
20
throw new TypeError('must provide a \'secret\' option')
21
22
// make it an EventEmitter, sort of
23
+ handler.__proto__ = EventEmitter.prototype
24
EventEmitter.call(handler)
- Object.keys(EventEmitter.prototype).forEach(function (k) {
25
- handler[k] = EventEmitter.prototype[k]
26
- })
27
28
return handler
29
0 commit comments