How can you define a callback function to pass to a javascript library such that the 'context' (
this
) of the callback function is correct? I tried making it a receiver function on that type, but it says those are not allowed.
bbaldino
11/15/2020, 5:49 AM
From what dukat generates, it looks like the 'context' is passed as the first argument, but from what I've seen when actually running code that isn't the case.