Skip to content

Commit

Permalink
fix: destructure emit data
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Apr 22, 2019
1 parent 2d5825d commit 0373bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime_events.go
Expand Up @@ -18,5 +18,5 @@ func (r *RuntimeEvents) On(eventName string, callback func(optionalData ...inter

// Emit pass through
func (r *RuntimeEvents) Emit(eventName string, optionalData ...interface{}) {
r.eventManager.Emit(eventName, optionalData)
r.eventManager.Emit(eventName, optionalData...)
}

0 comments on commit 0373bea

Please sign in to comment.