@@ -13,7 +13,7 @@ import (
1313// to events in WASM code. "this" is set to the js.Value of the object that the event was attached to
1414// in its state at the time of the call. root is set to the value of the root object that the "this"
1515// object is within. Without componenets, this will be "document". If contained in a set of components,
16- // this will be the component's shadowRoot that this element is contained within.
16+ // this will be the component's shadowRoot that this element is contained within.
1717// "args" represents arguments sent to this function, which are application defined.
1818type WasmFunc func (this js.Value , root js.Value , args interface {})
1919
@@ -23,7 +23,7 @@ type wasmEvent struct {
2323 listenerEvent ListenerType
2424 release bool
2525 fn WasmFunc
26- args interface {}
26+ args interface {}
2727}
2828
2929// Call calls the attached event passing along the component's shadowPath to allow finding the
@@ -118,7 +118,7 @@ func (e *Events) AddWasmHandler(id string, et EventType, fn WasmFunc, args inter
118118 handlerEvent : et ,
119119 release : release ,
120120 fn : fn ,
121- args : args ,
121+ args : args ,
122122 },
123123 )
124124 return e
@@ -148,15 +148,15 @@ func (e *Events) AddWasmListener(id string, et ListenerType, fn WasmFunc, args i
148148 listenerEvent : et ,
149149 release : release ,
150150 fn : fn ,
151- args : args ,
151+ args : args ,
152152 },
153153 )
154154 return e
155155}
156156
157157// WasmEvents returns a list of functions that will attach Wasm events specified by
158158// .AddWasm(). This is for internal use only and has no compatibility promises.
159- func (e * Events ) WasmEvents () ( []func (* Doc , []string ) ) {
159+ func (e * Events ) WasmEvents () []func (* Doc , []string ) {
160160 if e .wasmEvents == nil {
161161 return nil
162162 }
0 commit comments