mirror of https://github.com/Hilbis/Hilbish
fix(bait): allow more than 1 argment for catch callback
parent
4596159b8f
commit
63061e3a52
|
@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) {
|
|||
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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue