5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 01:00:21 +08:00

fix: destructure emit data

This commit is contained in:
Lea Anthony 2019-04-23 08:44:47 +10:00
parent 2d5825d73d
commit 0373bea4e5
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -18,5 +18,5 @@ func (r *RuntimeEvents) On(eventName string, callback func(optionalData ...inter
// Emit pass through // Emit pass through
func (r *RuntimeEvents) Emit(eventName string, optionalData ...interface{}) { func (r *RuntimeEvents) Emit(eventName string, optionalData ...interface{}) {
r.eventManager.Emit(eventName, optionalData) r.eventManager.Emit(eventName, optionalData...)
} }