fix(bait): allow more than 1 argment for catch callback

pull/78/head
sammyette 2021-10-13 23:41:20 -04:00
parent 4596159b8f
commit 63061e3a52
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) {
b.Em.Emit(name, args...) b.Em.Emit(name, args...)
} }
func (b *Bait) catch(name string, catcher func(interface{})) { func (b *Bait) catch(name string, catcher func(...interface{})) {
b.Em.On(name, catcher) b.Em.On(name, catcher)
} }